[TYPO3-mvc] Translate f:uri.resource from "EXT:tx_ext..." to correct path?

Jan Kornblum jan.kornblum at gmx.de
Wed Nov 13 11:50:15 CET 2013


Hi Gianluca,

thanks for your reply.

> {f:uri.resource path: '{settings.tx_ext_js}'}
>
> the view helper  (ResourceViewHelper) , assumes that the "resource" is 
> located in path "Resources/Public" of your extention: 
> typo3conf/ext/your_ext_key/Resources/Public/
>
> So, in settings.tx_ext_js, you should only have this path: "Js/script.js".
> In this way, ResourceViewHelper will build this path:
>
> typo3conf/ext/your_ext_key/Resources/Public/Js/script.js

Yes, i've figured this out in between, too. The reason for my request 
was just, that i've got a definition for the frontend plugin with a 
usual path like "EXT:my_ext...", and i would like to "copy" this 
setting into my backend module like module.tx_myext.settings.jsfile < 
plugin.tx_myext.settings.jsfile.

As i know know that f:uri.resource cannot translate an "EXT:" prefix, i 
need to have two different annotations for plugin and module ;)

Kind regards, Jan




More information about the TYPO3-project-typo3v4mvc mailing list