[TYPO3-mvc] Accessing TS user defined constants on fluid templates
Claus Due
claus at wildside.dk
Mon Mar 26 19:39:22 CEST 2012
Hi Fabio,
You should place your TS in plugin.tx_parkdb.settings.xyx - this way,
they are available in your Fluid template as {settings.xyz}.
--
Cheers,
Claus
http://fedext.net
On Mar 26, 2012, at 7:31 PM, Fabio wrote:
> Hello everyone!
>
> I am having a little problem.
> I defined this Typoscript setup script on my extbase extension:
>
> plugin.tx_parkdb {
> view {
> templateRootPath = {$plugin.tx_myext.view.templateRootPath}
> partialRootPath = {$plugin.tx_myext.view.partialRootPath}
> layoutRootPath = {$plugin.tx_myext.view.layoutRootPath}
> }
> persistence {
> storagePid = {$plugin.tx_myext.persistence.storagePid}
> }
>
> # Custom additional settings, page UIDs to pass on fluid templates
> actionPages {
> indexPagePid = {$plugin.tx_myext.actionPages.indexPagePid}
> showPagePid = {$plugin.tx_myext.actionPages.showPagePid}
> }
> }
>
> I have so setted on BE these settings on my TS templates like this:
>
> plugin.tx_myext.actionPages {
> showPagePid=40
> }
>
> Now I've tried to access my properties on fluid template with :
>
> {plugin.tx_myext.actionPages.showPagePid}
>
> But I don't get nothing
> How can I get these custom settings on fluid?
> Thanks in advance
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
More information about the TYPO3-project-typo3v4mvc
mailing list