[FLOW3-general] Handling multiple instances of 'plugins' on a page

Bastian Waidelich bastian at typo3.org
Thu Oct 13 12:28:42 CEST 2011


Jigal van Hemert wrote:

Hi Jigal,

> In some sites there are more instances of the same 'plugin' on a page.
> When these instances want to communicate something to the next page
> which is called both instances use exactly the same GET/POST parameters.

By default same plugins have same "plugin namespaces" (that's how we 
called it).
By default the namespace consists of extension name (package key) and 
the plugin name in order to be unique. But you will be able to override 
that per plugin and per instance.
BTW: That is also possible in Extbase (see [1]).

As Robert already mentioned: This is mostly transparent for the user. 
That means: You won't have to specify the target namespace. You won't 
even have to specify the target *plugin* or *page*.
Instead, when you create a Link/URI to some action with the UriBuilder, 
FLOW3 will know what plugin the action belongs to and will be able to 
determine the namespace and the target page for this.
This is also possible in Extbase [2], but it will be more flexible in 
Phoenix.

Bastian


[1] 
http://forge.typo3.org/projects/typo3v4-mvc/wiki/Configurable_Plugin_Namespaces
[2] 
http://forge.typo3.org/projects/typo3v4-mvc/wiki/Automatic_Target_Page_Determination


More information about the FLOW3-general mailing list