uitati aici un exemplu in care adresa virtuala o creez din tabela tt_news si tt_news_cat. Sper sa va ajute.
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
'_DEFAULT' => array(
'init' => array(
'enableCHashCache' => 1
// disable enableUrlDecodeCache for multiple domains as no root pid is
// caught and the system check to see if correct page path is grabbed
, 'enableUrlDecodeCache' => 0
, 'enableUrlEncodeCache' => 0
, 'appendMissingSlash' => 'ifNotFile'
, 'respectSimulateStaticURLs' => 0
, 'postVarSet_failureMode' => 'redirect_goodUpperDir'
, 'disablePathCache' => '0',
),
'pagePath' => array(
'type' => 'user',
'spaceCharacter' => '-',
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'segTitleFieldList' => 'tx_realurl_pathsegment,alias,nav_title,title'
, 'excludePageIds' => null
),
'postVarSets' => array(
'_DEFAULT' => array(
'news' => array(
array(
'type' => 'single',
'GETvar' => 'tx_ttnews[cat]',
'lookUpTable' => array(
'table' => 'tt_news_cat',
'useUniqueCache' => '1',
'id_field' => 'uid',
'alias_field' => 'title',
'maxLength' => 50,
'useUniqueCache_conf' => array(
'spaceCharacter' => '_',
'strtolower' => '1',
'autoUpdate' => '1',
),
),
), // array GETvar
array(
'GETvar' => 'tx_ttnews[tt_news]',
'lookUpTable' => array(
'table' => 'tt_news',
'id_field' => 'uid',
'alias_field' => 'title',
'useUniqueCache' => '1',
'maxLength' => 50,
'useUniqueCache_conf' => array(
'spaceCharacter' => '_',
'strtolower' => '1',
),
),
),// array GETvar
/*array(
'GETvar' => 'cHash',
'noMatch' => 'bypass'
),// array GETvar*/
array(
'GETvar' => 'tx_ttnews[backPid]',
'noMatch' => 'bypass'
),// array GETvar
array(
'GETvar' => 'id',
'valueMap' => array(
'contact_us' => '11',
),
'noMatch' => 'null',
), // array GETvar
),// array news
),
),
'fileName' => array (
'defaultToHTMLsuffixOnPrev' => 0
),
), // _DEFAULT
);Happy coding
