Body Tag with Page ID and Parent Id (uid, pid)


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

Simply adds the Page ID and the Parent ID (uid, pid) in the Body-Tag.


Copy this code and paste it in your HTML
  1. ######################################################
  2. ## Body Tag with Page ID and Parent ID
  3. ######################################################
  4. page.bodyTag >
  5. page.bodyTagCObject = COA
  6. page.bodyTagCObject {
  7. 10 = TEXT
  8. 10.field = uid
  9. 10.wrap = <body id="page_|"
  10. 20 = TEXT
  11. 20.field = pid
  12. 20.wrap = class="pid_|">
  13. }
  14.  
  15. ######################################################
  16. ## Body Tag only with Page ID
  17. ######################################################
  18. page.bodyTag >
  19. page.bodyTagCObject = TEXT
  20. page.bodyTagCObject.field = uid
  21. page.bodyTagCObject.wrap = <!!=|>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.