[TYPO3-mvc] Extbase & RealURL
Nikolas Hagelstein
lists at shr.cc
Wed Mar 16 13:00:00 CET 2011
Hi,
This is what i end up with after wasting some time fiddling arround ;) :
Should we add this to the wiki`?
This is need to supress the controller/action parameter ...needs to be
extended by every action/controller parameter we have.
'postVarSets' => array(
'_DEFAULT' => array(
'controller' => array(
array(
'GETvar' => 'tx_myext_pi1[action]',
'noMatch' => 'bypass'
),
array(
'GETvar' => 'tx_myext_pi1[controller]',
'noMatch' => 'bypass'
)
)
)
)
This makes a nice looking article title link. Used fixePostVars to get
rid of a leading "article" or similar. xxx and yyy need to be replaced
by the particular pid of the plung
'fixedPostVars' => array(
'myextDetailConfiguration' => array(
array(
'GETvar' => 'tx_myext_pi1[whatever]',
'lookUpTable' => array(
'table' => 'tx_myext_domain_model_whatever',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-'
)
)
)
),
'XXX' => 'myextDetailConfiguration',
'YYY' => 'myextDetailConfiguration',
)
Cheers,
Nikolas
More information about the TYPO3-project-typo3v4mvc
mailing list