[TYPO3] Changed page title not available in stdWrap.data

Francois Suter fsuter at cobweb.ch
Wed May 2 09:48:58 CEST 2007


Hi Christopher,

> The TS you're using directly references the pages table, but you have
> /not/ modified this with your code (this is probably a good thing if
> your extension, like tt_news, shows different content using the same
> page record).
>
> You just need to alter your TS a bit--I think this should work:
>
> 20.data = TSFE:title
>
> ...though I'm not sure if the scope is right. If that doesn't work,
> then this should:
>
> 20.data = TSFE:page|title

Thanks for your answer (the second bit of code is the correct one),  
but it still does not work. It really seems like it is my extension  
that is doing something wrong. It is rather old code and was not very  
cleanly programmed (in terms of knowledge of TYPO3 at the time). My  
hypothesis is that there's some initialisation that I don't do and  
that prevents the $GLOBALS['TSFE']->page['title'] = $record['title'];  
code from being effective. Or doesn't that make any sense? The fact  
is that not even the title that appears in the window bar is changed,  
whereas that works perfectly with tt_news.

Any clue?

François Suter
Directeur technique
------------------------------------------------------------------------ 
-------------------------------------------------------------
Cobweb Development Sàrl
www.cobweb.ch
------------------------------------------------------------------------ 
-------------------------------------------------------------




More information about the TYPO3-english mailing list