Some TS basics everyone needs in a layout


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



Copy this code and paste it in your HTML
  1. config {
  2. xmlprologue = none
  3. doctype = xhtml_trans
  4. # or
  5. doctype = <!DOCTYPE html>
  6. spamProtectEmailAddresses = 1
  7. language = de
  8. locale_all = de_DE
  9. # cleaning up
  10. disablePrefixComment = 1
  11. insertDmailerBoundaries = 0
  12. }
  13.  
  14. # enable indexing, so indexed_search works
  15. page.config.index_enable = 1
  16.  
  17. # remove csc-content div
  18. tt_content.stdWrap.innerWrap >
  19.  
  20. # change the body tag's id
  21. page.bodyTag >
  22. page.bodyTagCObject = HTML
  23. page.bodyTagCObject.value.wrap = <body id="my-id">
  24.  
  25. # add <head> parts manually
  26. page.headerData.999 = TEXT
  27. page.headerData.999.value = <script type="text/javascript" src="fileadmin/templates/js/my-file.js"></script>
  28. <link rel="stylesheet" type="text/css" href="fileadmin/templates/css/my-file.css" media="screen" />
  29.  
  30. # every indexed search should rely on a custom template
  31. # as the given ones are absolutely evil
  32. plugin.tx_indexedsearch.templateFile = fileadmin/templates/searchresult.html
  33.  
  34. # if condition: if page id == 1 then...
  35. [globalVar = TSFE:id=1]
  36. lib.subMenu.special = directory
  37. lib.subMenu.special.value = 70
  38. lib.subMenu.entryLevel = 0
  39. [end]
  40.  
  41. # some tt_news basics
  42. plugin.tt_news {
  43. templateFile = fileadmin/templates/tt_news.html
  44. singlePid = 77
  45. backPid = 32
  46. pid_list = 78
  47. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.