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

Roland most.wanted at gmx.at
Tue Nov 20 11:46:12 CET 2012


hi dmitry,

 >> <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>
 > This one is correct. What happens if you omit "noMatch"=>"bypass"?


call /page/product/show/1 & omit both "noMatch" directives:
WORKS: product 1 is shown.

call /page/producer/show/1 & omit both "noMatch" directives:
--- quote ---
Uncaught TYPO3 Exception
#1251730701: The value must be of type 
"Tx_MyExtension_Domain_Model_Producer", but was of type "NULL".
--- /quote ---




call /page/product/show/1 & use both "noMatch" directives:
--- quote --
Page not found
Reason: Segment "1" was not a keyword for a postVarSet as expected on 
page with id=15.
--- /quote ---

call /page/producer/show/1 & use both "noMatch" directives:
--- quote ---
Page not found
Reason: Segment "1" was not a keyword for a postVarSet as expected on 
page with id=15.
--- /quote ---




call /page/product/show/1 & use "noMatch" directive for 
mypluginnamespace[product]:
--- quote ---
An error occurred while trying to call 
Tx_AccHellaProduktkatalog_Controller_ProduktController->showAction(). 
Error: Required property 'produkt' does not exist.
--- /quote ---

call /page/product/show/1 & use "noMatch" directive for 
mypluginnamespace[producer]:
WORKS: product 1 is shown.

call /page/producer/show/1 & use "noMatch" directive for 
mypluginnamespace[produkt]:
WORKS: producer 1 is shown.

call /page/producer/show/1 & use "noMatch" directive for 
mypluginnamespace[producer]:
--- quote ---
An error occurred while trying to call 
Tx_AccHellaProduktkatalog_Controller_HerstellerController->showAction(). 
Error: Required property 'hersteller' does not exist.
--- /quote ---




kind regards

roland


More information about the TYPO3-english mailing list