[TYPO3-templavoila] Default Content

Tobias Bruns t3listen at gmx.de
Thu Sep 24 21:50:21 CEST 2009


Wow, that's easy :-) Works perfect, Thanks!

But the XML got overwritten when i remap some stuff through the  
mapping wizzard, right? Or did TV remember those things meanwhile?


Am 24.09.2009 um 18:50 schrieb Peter Klein:

> 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?
>
>
> _______________________________________________
> 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