Map content element to TS variable

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

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.

Copy this code and paste it in your HTML
  1. lib.footer = RECORDS
  2. lib.footer.tables = tt_content
  3. lib.footer.source = 100
  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


RSS Icon Subscribe to comments

You need to login to post a comment.