[TYPO3-dev] Multidimensional URL-Parameters

David Bruchmann typo3-dev at bruchmann-web.de
Fri Aug 20 13:15:24 CEST 2010


Hi,

I'm interested in your usage of multidimensional parameters in the url.
Sounds abstract? I'll explain:

Imagine you have programmed a listmodul for some extension with a 
pagebrowser. To enable the admins or editors to insert two of those 
combined modules on one page you had to programm generation of URLs like 
this (perhaps in this kind):

  //for the 1st modul:
index.php?id=123&tx_myext[cobj_1][page]=2

  // for the 2nd modul:
index.php?id=123&tx_myext[cobj_2][page]=3

Calling the first URL only would switch the 1st pagebrowser only and 
calling the 2nd one would switch the 2nd one only. combinig both 
parameters you can keep controlled both modules/browsers:

index.php?id=123&tx_myext[cobj_1][page]=2&tx_myext[cobj_2][page]=3

this is a simple example, perhaps someone had to realize more dimensions 
for some purposes i.e. more subpages or other parameters.

In the moment I like being able to address cObjects only directly by 
URL-parameters, so I inserted [cobj_1] and [cobj_2] above.

Intention of my post is to create or find some CGL for URLs for all 
extensions - perhaps a special API-extension for URLs would be help- and 
sensful just to create the right parameters (without SEO-purposes like 
realurl or cooluri).

If you know about an extension or have programmed one with those 
requirements I'd like to know how the URL-parts are structured and 
perhaps how building and interpreting is realized.
Technically I'm interested in solutions for pi_base (cms), MVC (extbase) 
and other frameworks.

Greets,
David




More information about the TYPO3-dev mailing list