[TYPO3-templavoila] Input Field in Template: Use some Typoscript if empty

lee perry leeperry at slack.de
Tue Nov 27 11:21:37 CET 2007


hi daniel,

okay maybe this is your solution:

10 = TEXT
10 {
	### the value of the input-field ###
	current = 1

	### if it's empty ###
	stdWrap.ifEmpty.cObject = TEXT

	### take the text of the page header field (field:title) ###
	stdWrap.ifEmpty.cObject.data = register:tx_templavoila_pi1.parentRec.header
}

i didn't test it ...

have fun and greetings
lee

> Dear List,
> 
> would you be so kind and give me a hint.
> 
> I´ve an input field in my page-template called Page-Title. In the frontend
> it should show field:title if no text is given in this field. How can I
> achieve this?
> 
> Thanks in advance
> Daniel
> 


More information about the TYPO3-project-templavoila mailing list