[TYPO3-mvc] advanced realurl for minimal list and show urls

Stefano Cecere scecere at krur.com
Thu Feb 17 00:22:11 CET 2011


hi

i have a list action on page "products" (say it has id 9):
http://site.com/products/

and would like to sow item "myitem" on url
http://site.com/products/myitem/

configuring reaulr like this:

'fixedPostVars' => array(
	'9' => array (
		array(
			'GETvar' => 'tx_myext_catalog[controller]',
			'valueMap' => array(
				'Store'  => 1
			),
			'noMatch' => 'bypass',
		),
		array(
			'GETvar' => 'tx_myext_catalog[action]',
		),
		array(
			'GETvar' => 'tx_myext_catalog[product]',
			'lookUpTable' => array(
				'table' => 'tx_myext_domain_model_product',
				'id_field' => 'uid',
				'alias_field' => 'title',
				'addWhereClause' => ' AND NOT deleted',
				'useUniqueCache' => 1,
				'useUniqueCache_conf' => array(
					'strtolower' => 1,
					'spaceCharacter' => '-',
				),
			),
		),
	),
),

i can get this url:

http://site.com/products/show/myitem/

in no way i can get rid of that "show" (making the show action work)

if i set

'GETvar' => 'tx_paolalenti_catalog[action]',
	'valueMap' => array(
             'list'  => 1,
             'show'  => 2
        	),
	'noMatch' => 'bypass',
)

i get link to url http://site.com/products/myitem/
but it doesn't work (it use action "list")

do you think it's possibile to solve it, or should i be happy of  
http://site.com/products/myitem/ ? :)

thank you
s


-- 
____    ___   __  _ ______________________

   Stefano Cecere
   krur.com multimedia


More information about the TYPO3-project-typo3v4mvc mailing list