[TYPO3-templavoila] Default Content

Peter Klein pmk at io.dk
Thu Sep 24 18:50:52 CEST 2009


Hi Tobias.

Just edit the DS of your TemplaVoila template, and modify the default 
TypoScript setup, from:

-- cut --
10 = RECORDS
10.source.current=1
10.tables = tt_content
10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
-- cut --

Into:
-- cut --
10 = COA
10 {
 10 = TEXT
 10.value = This is the default content
 10.if.isTrue.current = 1
 10.if.negate = 1

 20 = RECORDS
 20.source.current=1
 20.tables = tt_content
 20.stdWrap.if.isTrue.current = 1

 wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
}
-- cut --

--
Peter Klein / Umloud Untd.

"Tobias Bruns" <t3listen at gmx.de> wrote in message 
news:mailman.985.1253802217.16651.typo3-project-templavoila at lists.netfielders.de...
> Hello,
>
> is it possible to fill a TemplaVoila field (Editing Type: Content 
> Elements) with default content as long as there are no Content Elements?
>
> In the old columns based style, i would do it this way (per TypoScript):
>
> temp.mainContent = COA
> temp.mainContent {
>    10 = COA
>    10 {
>      if.isTrue.numRows < styles.content.get
>      10 < styles.content.get
>      10.wrap = |
>    }
>    20 = COA
>    20 {
>      if.isFalse.numRows < styles.content.get
>      10 < styles.content.get
>      10.wrap = |This is the default content
>    }
> }
>
> page.10 {
>   marks.MAIN_CONTENT < temp. mainContent
> }
>
> Is this possible with TamplaVoila in any way? 




More information about the TYPO3-project-templavoila mailing list