[TYPO3-english] realurl cHash
Morten Hagh
morten at hagh.dk
Thu Feb 2 15:29:07 CET 2012
This below did the magic:
######
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
'_DEFAULT' => array(
'init' => array(
'enableCHashCache' => 1,
'appendMissingSlash' => 'ifNotFile',
'adminJumpToBackend' => true,
'enableUrlDecodeCache' => 1,
'enableUrlEncodeCache' => 1,
'emptyUrlReturnValue' => '/',
),
'redirects' => array(),
'preVars' => array(
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'no_cache' => 1,
'nc' => 1,
),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'L',
'valueMap' => array('dk' => '0', 'sv' => '1', 'no' => '2', 'de' =>
'3', 'en' => '4',),
'valueDescription' => array('dk' => 'Dansk', 'sv' => 'Svenska',
'no' => 'Norsk', 'de' => 'Deutsch', 'en' => 'English',),
'noMatch' => 'bypass',
),
),
'pagePath' => array(
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 7,
'rootpage_id' => '1',
'segTitleFieldList' =>
'tx_realurl_pathsegment,alias,nav_title,title',
'disablePathCache' => 0
),
'postVarSets' => array(
'_DEFAULT' => array(
'sten' => array(
array(
'GETvar' => 'tx_rtmur_pi1[uid]',
'lookUpTable' => array(
'table' => 'tx_rtmur_bricks',
'id_field' => 'uid',
'alias_field' => 'rtnummer',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => '1',
'spaceCharacter' => '-'
)
),
),
),
'mortar' => array(
array(
'GETvar' => 'tx_rtmur_pi1[mortar]',
),
),
'color' => array(
array(
'GETvar' => 'tx_rtmur_pi1[coloruid]',
'lookUpTable' => array(
'table' => 'tx_rtmur_colorcats',
'id_field' => 'uid',
'alias_field' => 'color',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => '1',
'spaceCharacter' => '-'
)
),
),
),
'roof' => array(
array(
'GETvar' => 'tx_rttag_pi1[uid]',
'lookUpTable' => array(
'table' => 'tx_rttag_tagsten',
'id_field' => 'uid',
'alias_field' => 'rtnummer',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => '1',
'spaceCharacter' => '-'
)
),
),
),
'type' => array(
array(
'GETvar' => 'tx_rttag_pi1[typeuid]',
'lookUpTable' => array(
'table' => 'tx_rttag_rooftype',
'id_field' => 'uid',
'alias_field' => 'uid',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => '1',
'spaceCharacter' => '-'
)
),
),
),
),
),
),
);
#####
> Could you please share the configuration that worked?
>
> Thank you -- Tony
>
> On 2/2/2012 9:05 AM, Morten Hagh wrote:
>> Garh... This was an id-ten-t error! I had the init array placed wrong!
>>
>>
>>> What I mean is that I can't "hide" the cHash from the URL so taht I can
>>> get an URL that looks like
>>>
>>> domain.com/page/subpage/album/album-one/
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>
--
MVH
Morten Hagh
More information about the TYPO3-english
mailing list