[TYPO3-mvc] Passing single view id to template

Dawid Pacholczyk dpacholczyk at gmail.com
Thu Oct 21 13:33:36 CEST 2010


First way is much more better BUT how can I get it from flexform  ? :) I`m
looking for some info about how to get data from flexform.

2010/10/21 Christine Gerpheide <cgerpheide at gmail.com>

> 2010/10/21 Dawid Pacholczyk <dpacholczyk at gmail.com>
>
> > Hello List,
> >
> >  how can I pass single view page id from my controller to fluid and how
> can
> > I use it in template ?
> >
> > Best regards,
> > Dawid Pacholczyk
> >
> >
> >
> Hi Dawid,
>
> You can access it directly in your template like:
> <f:link.page pageUid="{settings.singlePageID}" />
>
> If you really want to pass it in from the controller, I suppose you could
> do:
> $this->view->assign('singlePageId',$this->settings['singlePageID']);
> and then in your template:
> <f:link.page pageUid="{singlePageID}" />
>
> The first way is simpler though -- less code. Both of these assume you have
> it defined in your settings something like
> plugin.tx_myext.settings.singlePageID = 123
>
> HTH,
> Christine
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>



-- 
Dawid Pacholczyk
tel: 502-054-334
gg: 5564051
skype: dpacholczyk
http://typo3blog.pl (only polish version at the moment)


More information about the TYPO3-project-typo3v4mvc mailing list