[TYPO3-templavoila] Default Content

Tobias Bruns t3listen at gmx.de
Thu Sep 24 16:23:37 CEST 2009


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