[TYPO3-templavoila] Using page title if custom field is empty

Ralf Heydenreich rheydenr at justmail.de
Sun Jan 22 20:59:18 CET 2012


Hi all,
I've defined a custom field ("lib.field_pageheader") in my template. 
Now, I the field is left blank on a certain page I want to render the 
given page title (the name of the page) into this. How can I achieve this?

My first try:

10 = TEXT
10.current = 1 // {page:title}
10.data = register:tx_templavoila_pi1.parentRec.header

doesn't work... (code from template element)

TIA,
Ralf.


More information about the TYPO3-project-templavoila mailing list