0

After setting the flexform-settings I can use them on this page. But after linking to another page using:

<f:link.action 
  pageUid="{settings.detailPid}"
  action="show"
  arguments="{object : object}">
    linktext
</f:link.action>

... I do not have access to this settings anymore - so I loose the setting for 'backPid'. How can I use {settings.backPid} in Detailview on Detailpage?

Edit: I would like to use the typoscript variables that are overwritten by flexformsettings.

Jonas
  • 349
  • 3
  • 21

1 Answers1

0

You have to pass this settings into argument in your link viewhelper, like

<f:link.action 
  pageUid="{settings.detailPid}"
  action="show"
  arguments="{object : object,backpid : settings.backpid}">
    linktext
</f:link.action>

Hope this will help you.

Vivek Parmar
  • 773
  • 1
  • 10
  • 26
  • That is no option because it sets the parameter into the url and it shouldn't. – Jonas Nov 29 '16 at 09:52
  • then you have to do with session. – Vivek Parmar Nov 29 '16 at 10:45
  • Can you Tell me how to do with Session? – Jonas Nov 29 '16 at 13:49
  • There are different ways. The simplest would be for writing in the session $GLOBALS['TSFE']->fe_user->setKey("ses","key",$value) and for reading values from the session $GLOBALS["TSFE"]->fe_user->getKey("ses","key") , please check below link for more information, http://stackoverflow.com/questions/17440847/typo3-extbase-set-and-get-values-from-session – Vivek Parmar Nov 30 '16 at 04:21