New snippets section
The snippets section moved to docs.typo3.org on 9th February 2017.

You can easily search for and create new snippets on https://docs.typo3.org/typo3cms/Snippets/.

hide some specific content elements

Author Tags Category Date
Martin Holtz

15 snippets

CONTENT, TypoScript, condition, content, renderObj, if typoscript December 19, 2008

if you want to enable or disable some content elements f.e. within an condition, you can use the if-statement for that.

It should be esay to adapt that for your needs. Read TSref for that.

  1.  
  2. [globalVar = GP:test = 1]
  3. # Shows only content elements, which have not
  4. # uid 23,24,25
  5. page.10 < styles.content.get
  6. page.10.renderObj.stdWrap.if {
  7. isInList.field = uid
  8. value = 23,24,25
  9. negate = 1
  10. }
  11. [end]