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/.

KB TV Content Slide - excluding root page

Author Tags Category Date
Stig Nørgaard Færch

2 snippets

templavoila, TV, typoscript php June 24, 2009

This tip is for TemplaVoila and KB TV Content Slide.
If you don't want KB TV Content Slide to go all the way down to the root, you can make it go only to the level above root.
Using the stdWrap property data to get the current page level is the key.

  1. 10= RECORDS
  2. 10.source.postUserFunc = tx_kbtvcontslide_pi1->main
  3. 10.source.postUserFunc.field = field_openings
  4. 10.source.postUserFunc.table = tt_content
  5. 10.source.postUserFunc.slide.data = level:1
  6. 10.tables = tt_content
  7.