.. include:: /Includes.rst.txt .. _typo3-fluid-uri-resource: ========================================== uri.resource ViewHelper `` ========================================== A ViewHelper for creating URIs to resources. This ViewHelper should be used for extension resource files. For images within FAL storages, or where graphical operations are performed, use :ref:` ` instead. Examples ======== Best practice with EXT: syntax ------------------------------ :: Output:: Preferred syntax that works in both extbase and non-extbase context. Defaults -------- :: Output:: Works only in extbase context since it uses the extbase request to find current extension, magically adds 'Resources/Public' to path. With extension name ------------------- :: Output:: Magically adds 'Resources/Public' to path. .. _typo3-fluid-uri-resource_arguments: Arguments ========= .. _uri.resource_path: path ---- :aspect:`DataType` string :aspect:`Required` true :aspect:`Description` The path and filename of the resource (relative to Public resource directory of the extension). .. _uri.resource_extensionname: extensionName ------------- :aspect:`DataType` string :aspect:`Required` false :aspect:`Description` Target extension name. If not set, the current extension name will be used .. _uri.resource_absolute: absolute -------- :aspect:`DataType` mixed :aspect:`Required` false :aspect:`Description` If set, an absolute URI is rendered