realurl

Use other than primary key as RealURL id_field

不想你离开。 提交于 2019-12-02 09:23:25
In a TYPO3 6.2 site, I have the following postVarSets in realurl_conf.php for an extbase extension: 'postVarSets' => array( '_DEFAULT' => array( 'wba' => array( array( 'GETvar' => 'tx_weiterbildung_pi1[item]' , 'lookUpTable' => array( 'table' => 'tx_weiterbildung_domain_model_item', 'id_field' => 'uid', 'alias_field' => 'kurs_titel', 'addWhereClause' => ' AND NOT deleted', 'useUniqueCache' => 1, 'useUniqueCache_conf' => array( 'strtolower' => 1, 'spaceCharacter' => '-', ), ), ), ), ), ), This works. As the data in this table is imported from another site, I realized that to avoid confusion, I

RealURL: Remove Controller and Action from URL

老子叫甜甜 提交于 2019-11-28 01:10:33
I have an extension with a list and show action. Currently this extension can appear on multiple pages: /page-1/ /page-2/subpage/ I have configured realurl like that: $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]', ),