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

Daniel Schwarz schwarz at lise.de
Tue Nov 27 12:33:57 CET 2007


Hi Lee,

thanks a lot: I only changed

stdWrap.ifEmpty.cObject.data = register:tx_templavoila_pi1.parentRec.header
to
stdWrap.ifEmpty.cObject.data = register:tx_templavoila_pi1.parentRec.title

and it worked perfectly.

Thanks and Greetings
Daniel


On 11/27/07, lee perry <leeperry at slack.de> wrote:
>
> 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
> >
> _______________________________________________
> TYPO3-project-templavoila mailing list
> TYPO3-project-templavoila at lists.netfielders.de
>
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-templavoila
>


More information about the TYPO3-project-templavoila mailing list