[TYPO3-mvc] controller and unique id
Steffen Kamper
info at sk-typo3.de
Mon Jul 20 10:21:47 CEST 2009
Hi,
Christophe balisky schrieb:
> There is a solution to this :
>
> All PiVars and GP variables should be prefixed by the plugin Id (content
> id of the plugin in the tt_content table).
>
> Let's say I want to transfer 3 variables (controller, action and value
> to a specific plugin in my page which holds 3 times the same plugin.
>
> variable names should be : tx_extension
> name_pi1[myPluginId][controller]=mycontroller&tx_extension
> name_pi1[myPluginId][action]=myaction&tx_extension
> name_pi1[myPluginId][value]=myValue.
>
> When we read the PiVars you should check if tx_extension
> name_pi1[myPluginId] is an array an override the nomal tx_extension
> name_pi1[] array with their values.
>
> In that manner if you send tx_extension
> name_pi1[controller]=mycontroller&tx_extension
> name_pi1[action]=myaction&tx_extension name_pi1[value]=myValue will get
> the values and react to the action , and if you send tx_extension
> name_pi1[myPluginId][controller]=mycontroller&tx_extension
> name_pi1[myPluginId][action]=myaction&tx_extension
> name_pi1[myPluginId][value]=myValue only the desired plugin
> (id=pluginId) will react.
>
> Any thoughts on this ?
>
i don't like the additional array. This leads to complications when
using realurl.
Imho an additional parameter like &identifier=uid which is always
appended would do the magic also.
vg Steffen
More information about the TYPO3-project-typo3v4mvc
mailing list