[TYPO3] obtain current page-title / -subtitle within TS-section of template record

Xavier Perseguers typo3 at perseguers.ch
Mon Aug 4 17:23:18 CEST 2008


Hi Jonas,

> Hi everybody, my website html-template has a section where I want to display
> the current title and/or subtitle of the page the user is currently
> browsing. Currently I am just assigning static content to this header
> element within my TS-section of the template record, but adjusting this
> dynamically shouldn't be too big a problem? For a while I thought about
> usind a menu and hiding (through css "hidden"-option) everything apart from
> the current page, but that would only give me the navi title, not the page
> title (should the entries be different) and seems a bit overdone for a
> simple objective ... :-|

Use this:

lib.pageTitle = TEXT
lib.pageTitle.data = page:title

with TemplaVoila or

lib.pageTitle = TEXT
lib.pageTitle.field = title

without it

But please start reading the good documentation you find on 
http://typo3.org/documentation/. For instance

http://typo3.org/documentation/document-library/tutorials/doc_tut_ftb1/1.0.1/view/

Regards

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en/tutorials/typo3.html


More information about the TYPO3-english mailing list