Rootline Page Title


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

Rootline page title, works also with the tt_news page title


Copy this code and paste it in your HTML
  1. config.noPageTitle = 2
  2. page.headerData.80 = COA
  3. page.headerData.80 {
  4. wrap = <title>|</title>
  5.  
  6. 10 = HMENU
  7. 10 {
  8. special = rootline
  9. special.range = 0|-2 # rootline except the current page
  10. includeNotInMenu = 1
  11.  
  12. 1 = TMENU
  13. 1.NO = 1
  14. 1.NO.stdWrap.field = title // nav_title
  15. 1.NO.stdWrap.htmlSpecialChars = 1
  16. 1.NO.doNotLinkIt = 1
  17. 1.NO.allWrap = |&nbsp;-&nbsp;|*| |&nbsp;-&nbsp;|*| |
  18. }
  19.  
  20. # title of the current page
  21. 20 = TEXT
  22. 20.data = TSFE:page|title
  23. 20.htmlSpecialChars = 1
  24. 20.wrap = &nbsp;-&nbsp;|
  25.  
  26. # title of the website (defined in the template)
  27. 30=TEXT
  28. 30.data = DB:sys_template:1:sitetitle
  29. 30.htmlSpecialChars = 1
  30. 30.wrap = &nbsp;-&nbsp;|
  31. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.