Posted By

arnekolja on 05/17/10


Tagged


Versions (?)

Map content element to TS variable


 / Published in: TYPO3
 

Given a variable name that is set up (maybe in TemplaVoila?), this one maps a single content element to it. Very useful for global footer elements and such.

  1. lib.footer = RECORDS
  2. lib.footer.tables = tt_content
  3. lib.footer.source = 100
  4.  
  5. # other version: allow multiple objects in a COA (Content Object Array)
  6. lib.sidebarElements = COA
  7. lib.sidebarElements.10 = RECORDS
  8. lib.sidebarElements.10.wrap = <div class="sidebar-element">|</div>
  9. lib.sidebarElements.10.tables = tt_content
  10. lib.sidebarElements.10.source = 100

Report this snippet  

You need to login to post a comment.