fluid - TYPO3 Extbase switchableControllerActions -


I have an extension that has a controller with two actions: listAction and showAction. Question: Can I show two actions? On the same page

On the specific page I have created an insert plugin record with my plugin, where in the plugin's backend configuration flex, I have selected "list action" through the switchable controlleraction field. The list action includes a list of products with a link to the product show action.

So what do I want?

F.E. I have the page product URL example.com/products (my list is action)
and for the show's action, I like the URL Example.com should / product / name-of-product

I have found an extension with this functionality. And I saw that there is something in the switchable controller operations area of ​​the plugin's flex:

   the upcoming; Events- & gt; List; Events- & gt; Calendar; Events- & gt; Show; Events- & gt; Export & lt; / NumIndex & gt; & Lt; / NumIndex & gt; & Lt; NumIndex index = "1" type = "array" & gt; & Lt; num indices index = "0" & ​​gt; LLL: EXT: GB_AVENS / RESOURCES / PRIVATE / LANGUAGE / LOCELANG / DB. XLF: FlexForm.Default.SwitchableControllerActions.list & lt; / NumIndex & gt; & Lt; numIndex index = "1" & gt; Event-> List; Event-> the upcoming; Event-> Calendar; Event-> Show; Event-> Export & lt; / NumIndex & gt; & Lt; / NumIndex & gt; & Lt; numIndex index = "2" type = "array" & gt; & Lt; numIndex index = "0" & ​​gt; LLL: EXT: GB_Event / Resource / Private / Language / LocaleNG_DB XLF: FlexForm.Default. SwitchableControllerActions.calendar & lt; / NumIndex & gt; & Lt; numIndex index = "1" & gt; Event-> Calendar; Event-> the upcoming; Events- & gt; List; Events- & gt; Show; Events- & gt; Export & lt; / NumIndex & gt; & Lt; / NumIndex & gt; & Lt; NumIndex index = "3" type = "array" & gt; & Lt; numIndex index = "0" & ​​gt; LLL: EXT: GB_Ibent / Resource / Private / Language / LocaleNong_DB XLF: FlexForm.Default. SwitchableControllerActions.details & lt; / NumIndex & gt; & Lt; numIndex index = "1" & gt; Event-> Show; Events- & gt; List; Events- & gt; the upcoming; Events- & gt; Calendar; Events- & gt; Export & lt; / NumIndex & gt; & Lt; / NumIndex & gt; & Lt; / Item & gt; & Lt; Maxitems & gt; 1 & lt; / Maxitems & gt; & Lt; Size & gt; 1 & lt; / Size & gt; & Lt; / Config & gt; & Lt; OnChange & gt; Reload & lt; / OnChange & gt; & Lt; / TCEforms & gt; & Lt; / SwitchableControllerActions & gt;   

I have updated my Flexform configuration but it still does not work when I click on the link with the show's action, then I have the same list view

Thanks in advance I would appreciate any help.

Be sure that you have both the list and the details of your switchable controller action looks like:

  & lt; NumIndex index = "0" type = "array" & gt; & Lt; NumIndex index = "0" & ​​gt; LLL: EXT: GB_AVENS / RESOURCES / PRIVATE / LANGUAGE / LOCELANG / DB. XLF: FlexForm.Default. SwitchableControllerActions.upcoming & lt; / numIndex & gt; & Lt; NumIndex index = "1" & gt; Event-> List; Event-> Calendar; Event-> Show & lt; / NumIndex & gt; & Lt; / NumIndex & gt;   

Then use a condition to set the controller / action on a condition in your typo script template:

  [globalVar = GP: tx_myext_plugin | ShowUid & gt; 0] config.defaultGetVars {tx_myext_plugin.action = show} [global]   

Use something like this to get the URL to another controller parameter in RealUrl:

  array ('GETvar' = & gt; 'tx_extkey_plugin [action]', 'not match' = 'gtc:' 'bypass'),   

You can get more information about this German article about

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -