I have a list extension and a show action. Currently, this extension can appear on several pages:
/page-1/ /page-2/subpage/
I configured realurl as follows:
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']=array ( 'encodeSpURL_postProc' => array('user_encodeSpURL_postProc'), 'decodeSpURL_preProc' => array('user_decodeSpURL_preProc'), '_DEFAULT' => array ( β¦ 'postVarSets' => array( '_DEFAULT' => array( 'controller' => array( array( 'GETvar' => 'tx_extension_plugin[controller]', 'noMatch' => 'bypass', ), ), 'extension' => array( array( 'GETvar' => 'tx_extension_plugin[action]', ), array( 'GETvar' => 'tx_extension_plugin[controller]', ), array( 'GETvar' => 'tx_extension_plugin[value]', 'lookUpTable' => array( 'table' => 'table', 'id_field' => 'uid', 'alias_field' => 'name', 'addWhereClause' => ' AND NOT deleted AND NOT hidden', β¦ ); function user_decodeSpURL_preProc(&$params, &$ref) { $params['URL'] = str_replace('page-1/', 'page-1/extension/', $params['URL']); } function user_encodeSpURL_postProc(&$params, &$ref) { $params['URL'] = str_replace('page-1/extension/', 'page-1/', $params['URL']); }
Now I get the urls, for example:
/page-1/ /page-1/Action/show/name-of-single-element
I really want:
/page-1/name-of-single-element
How to get rid of action and controller?
If I remove:
array('GETvar' => 'tx_extension_plugin[action]'), array('GETvar' => 'tx_extension_plugin[controller]'),
it adds parameters to the url.
typo3 extbase realurl
lampshade
source share