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) 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: 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 Then use a condition to set the controller / action on a condition in your typo script template: Use something like this to get the URL to another controller parameter in RealUrl: You can get more information about this German article about
and for the show's action, I like the URL Example.com should / product / name-of-product
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;
[globalVar = GP: tx_myext_plugin | ShowUid & gt; 0] config.defaultGetVars {tx_myext_plugin.action = show} [global]
array ('GETvar' = & gt; 'tx_extkey_plugin [action]', 'not match' = 'gtc:' 'bypass'),
Comments
Post a Comment