[TYPO3] tt_news archive date as page title?

Julian [JRK Software] julian at jrksoftware.com
Mon Feb 12 13:13:38 CET 2007


Christian,
Thank you very much for your reply. This sounds a bit complicated for a 
"Typo3 noob" like me but i'll give it a try :)

Regards,
Julian

christian oettinger wrote:
> Hi Julian,
> 
> 
> this is no tested solution, just a hint in the (hopefully right) direction.
> 
> This would be for a fixed text:
> 
> config.noPageTitle = 1
> page.headerData.10 = TEXT
> page.headerData.10 {
>      value = THIS IS THE NEW TITLE
>      wrap = <title>|</title>
> }
> 
> And like this you should be able to read a row of a table. Change 
> orderBy to get the newest.
> 
> marks.your_title = TEXT
> marks.your_title {
>      table = {$your_table}
>      select.pidInList = {$pid}
>      select.orderBy= {$order_by}
>      wrap = <title>|</title>
> }
> 
> config.noPageTitle = 1
> page.headerData.10 < marks.your_title
> 
> 
> Maybe you can combine this with a GET_VAR-Value which probably contains 
> the uid of the listed element. Something like:
> 
>            25 = TEXT
>            25.data = GPvar : tx_meinname_pi1 | showUid
> 
> Then replace select.orderBy with select.where with this value. Then you 
> would be done.
> 
> The other possibility would be to alter the extension, for it for sure 
> knows this uid (But I usually do not touch other extensions). Check this:
> 
> 	debug($GLOBALS['TSFE']->page);
> 	probably it's $GLOBALS['TSFE']->page['title']
> 
> 
> hope this helps & greeting from munich
> 
> christian
> 
> 
> Julian [JRK Software] wrote:
>> Hello list,
>> I'm trying to figure how to (if possible at all) insert the archive date
>> as a page title.
>> 
>> For example, I have an AMENU element on a page. The page where the
>> archived items will be displayed is set and have an LIST element on it.
>> All is working as intended. Now i need to display the archive date as
>> the page title of this page.
>> 
>> Any hints how to achieve this will be highly appreciated    :)
>> 
>> Regards,
>> Julian
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> 
> __________ NOD32 1.1224 (20050920) Information __________
> 
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
> 
> 
> 


More information about the TYPO3-english mailing list