[TYPO3] Setting page title from record information (like tt_news singleview)

tKoopa tkoopa at gmail.com
Thu Sep 6 13:50:03 CEST 2007


Hi all,

I'm trying to set the page title from a plugin (like tt_news does on
singleviews). I've tried:

$GLOBALS['TSFE']->page['title'] = $row['lastname'];
$GLOBALS['TSFE']->indexedDocTitle = $row['lastname'];

but apparently this doesn't work because my plugin is cached (needs to be)

So I looked at doing in TS, and I'm almost there but I can't retrieve
the DB record information dynamically

page.headerData.3 >
page.headerData.3 = TEXT
# This works when setting the record id statically
#page.headerData.3.data = DB : tx_pixmeps_table:10:lastname
#but not using the get var
page.headerData.3.data = DB :
tx_pixmeps_table:{GPvar:tx_pixmeps_pi3|showUid}:lastname
page.headerData.3.wrap = <title>My website:&nbsp;|</title>

Any pointer would be great,

Thanks,

Tiberius


More information about the TYPO3-english mailing list