[TYPO3-english] realurl and the same titlies of news
Tomasz Krawczyk
tomkrawc at gmail.com
Thu Aug 11 19:33:20 CEST 2011
W dniu 2011-08-11 09:29, Marco Behnke pisze:
> Tomasz Krawczyk wrote:
>> www.mydomain.com/page/2011/07/28/dear-diary/
>> www.mydomain.com/page/2011/07/30/dear-diary-1/
>> (...)
>> www.mydomain.com/page/2011/08/05/dear-diary-14/
>>
>> Is it possible to force realurl to do not add numbers to news titles?
>
> Instead of translating the date to path segments, you could configure
> realurl to do something like
>
> www.mydomain.com/page/dear-diary-2011-07-28/
> www.mydomain.com/page/dear-diary-2011-07-30/
>
> It is bit more hr than appending the uid
Ok. I understand.
It looks such solution works
TS
plugin.tt_news {
useHRDates = 0
useHRDatesSingle = 0
}
and in realurl_conf.php
array(
'GETvar' => 'tx_ttnews[tt_news]',
'lookUpTable' => array(
'table' => 'tt_news',
'id_field' => 'uid',
'alias_field' => 'CONCAT(title, " ", FROM_UNIXTIME(crdate,
"%Y-%m-%d"))',
'addWhereClause' => ' AND NOT deleted AND NOT hidden ',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
Thank you guys for suggestions.
--
regards
Tomek
More information about the TYPO3-english
mailing list