Wrap only if not empty in TS and/or TemplaVoila


/ Published in: TYPO3
Save to your folder(s)

required = 1 is the magic here

stolen from
Read more: http://www.typo3wizard.com/en/snippets/general-config/wrap-only-if-not-empty.html#ixzz0psA1PVX2
Under Creative Commons License: Attribution


Copy this code and paste it in your HTML
  1. temp.rightContent < styles.content.getRight
  2. temp.rightContent.stdWrap {
  3. wrap = |
  4. required = 1
  5. }
  6.  
  7. # in TemplaVoila one would use this within the "default stdWrap" section of the mapped element:
  8. wrap = <section id="teaser-intro">|</section>
  9. required = 1

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.