[TYPO3-english] Usage of fixedPostVars in REALURL to get domain.com/page/controller/action/uid URL path structure

Roland most.wanted at gmx.at
Mon Nov 19 18:11:10 CET 2012


hi everybody,

i try to reduce the number of URL path segments by using 'fixedPostVars" 
on a page where a custom extbase extension is placed.

the extension can list/show products and producers.

these URLs should be used:

domain.com/page15/product/list (WORKS)
domain.com/page15/producer/list (WORKS)

domain.com/page15/product/show/123 (DOES NOT WORK)
domain.com/page15/producer/show/456 (DOES NOT WORK)

more general the URLs look like this:

domain.com/page15/controller/action/uid
...so the uid can represent a product or a producer.

i tried this configuration:

<quote>
'fixedPostVars' => array(
     '15' => array(
         array(
             'GETvar' => 'mypluginnamespace[controller]',
             'valueMap' => array(
                 'producer' => 'Producer',
                 'product' => 'Product',
             ),
         ),
         array(
             'GETvar' => 'mypluginnamespace[action]',
         ),
         array(
             '0' => array(
                 'prevValueInList' => 'product',
                 'GETvar' => 'mypluginnamespace[product]',
             ),
             '1' => array(
                 'prevValueInList' => 'producer',
                 'GETvar' => 'mypluginnamespace[producer]',
             ),
         ),
     ),
),
</quote>

i also tried this configuration:

<quote>
'fixedPostVars' => array(
     '15' => array(
         array(
             'GETvar' => 'mypluginnamespace[controller]',
             'valueMap' => array(
                 'producer' => 'Producer',
                 'product' => 'Product',
             ),
         ),
         array(
             'GETvar' => 'mypluginnamespace[action]',
         ),
         array(
             'prevValueInList' => 'product',
             'GETvar' => 'mypluginnamespace[product]',
             'noMatch' => 'bypass',
         array(
             'prevValueInList' => 'producer',
             'GETvar' => 'mypluginnamespace[producer]',
             'noMatch' => 'bypass',
         ),
     ),
),
</quote>

is it possible to realize this only by configuring EXT:realurl?

kind regards

roland


More information about the TYPO3-english mailing list