render content elements in Typoscript


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



Copy this code and paste it in your HTML
  1. temp.right = COA
  2. temp.right {
  3. 10 = CONTENT
  4. 10 {
  5. table = tt_content
  6. select {
  7. selectFields = uid, header, bodytext
  8. pidInList = this
  9. orderBy = sorting
  10. where = colPos=2
  11. }
  12. renderObj = COA
  13. renderObj {
  14. 10 = TEXT
  15. 10 {
  16. field = header
  17. stdWrap.dataWrap = <div class="contentHeader_{field:uid}">|</div>
  18. }
  19. 20 = TEXT
  20. 20 {
  21. field = bodytext
  22. stdWrap.dataWrap = <div class="contentBody_{field:uid}">|</div>
  23. }
  24. }
  25. field = uid
  26. wrap = <div class='rightContentWrap'>|</div>
  27. }
  28. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.