[TYPO3] Generating unique links for Internal Page [t3-newbie]
maaboo
maaboo at gmail.com
Wed Sep 24 17:30:32 CEST 2008
I reply to myself here. This is a [almost] minimal conf to create links like
mysite.name/page/path/to/70 (where 70 - is page id where news links as 'Link
Internal page').
<?php
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
'init' => array(
'enableUrlDecodeCache' => 1,
'enableUrlEncodeCache' => 1,
'enableCHashCache' => 1,
),
'pagePath' => array(
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '_',
'languageGetVar' => 'L',
'expireDays' => 60,
'rootpage_id' => 14,
'segTitleFieldList' => 'tx_realurl_pathsegment,alias,uid',
'disablePathCache' => 0,
'firstHitPathCache' => 1,
'autoUpdatePathCache' => 0,
'dontResolveShortcuts' => 0,
),
'postVarSets' => array(
'GETvar' => 'tx_ttnews[tt_news]',
),
);
?>
The keyword is: 'segTitleFieldList' => 'tx_realurl_pathsegment,alias,uid',
so if there is no "Speaking URL path segment" detected - it writes page-id
(thanks to Dmitry Martynenko), he give me advice on our russian t3-forum).
Now links generate correctly like:
mysite.name/page/path/to/70
Nice! :-) Thanks 2 all for your great help. My project going into the last
phase of pre-production. :-)
--
with respect, Grigory
ICQ UIN: 22694713
More information about the TYPO3-english
mailing list