ResourceViewHelper extends AbstractViewHelper

ViewHelper

This class is the implementation of a Fluid ViewHelper.

View this class in the TYPO3 ViewHelper reference: <f:uri.resource>

FinalYes

ViewHelper for creating URIs to resources (assets).

This ViewHelper should be used to return public locations to extension resource files for use in the frontend output.

For images within FAL storages, or where graphical operations are performed, use <f:uri.image> instead.

  <link href="{f:uri.resource(path:'EXT:indexed_search/Resources/Public/Css/Stylesheet.css')}" rel="stylesheet" />
Tags
see
https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-uri-resource
see
https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-uri-image

Table of Contents

Methods

initializeArguments()  : void
render()  : string
Render the URI to the resource. The filename is used from child content.

Methods

initializeArguments()

public initializeArguments() : void

render()

Render the URI to the resource. The filename is used from child content.

public render() : string
Tags
throws
RuntimeException
Return values
string

The URI to the resource


        
On this page

Search results