[FLOW3-general] Accessing resources from classes
Karsten Dambekalns
karsten at typo3.org
Wed Dec 2 10:52:45 CET 2009
Hi.
On 02.12.09 08:32, Robert Lemke wrote:
> In a Fluid template you can only refer to files located in the Resources/Public/ directory and you do that via the URI view helper.
>
> Points to Foo/Resources/Public/Images/MyLogo.png if the current package is Foo:
> <img src="{f:uri.resource(path: 'Images/MyLogo.png')}">
If you check the parsing-interceptors branch of Fluid, that can be
written as usual:
<img src="../../Images/MyLogo.png">
Just make it point to the image in your Resources/Public folder so that
your template in Resources/Private can be viewed in a browser correctly.
Then the image (or CSS or whatever) URL will be rewritten transparently.
Regards,
Karsten
More information about the FLOW3-general
mailing list