jousch

TYPO3 re-enabling Subheader for tt_content

Sep 12th, 2011
949
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. TCA:
  2. # Subheader re-enablen für tt_content
  3. t3lib_div::loadTCA('tt_content');
  4. t3lib_extMgm::addFieldsToPalette("tt_content",'header','subheader;;8','after:header');
  5.  
  6. -----------------------------------------------
  7. -----------------------------------------------
  8. -----------------------------------------------
  9.  
  10.  
  11. //-----------------------------------------
  12. // subheader für alle bekannten tt_content elemente re-enablen
  13. lib.subheader = TEXT
  14. lib.subheader {
  15.   field = subheader
  16.   required = 1
  17.   if {
  18.     equals {
  19.       field = header_layout
  20.     }
  21.     value = 100
  22.     negate = 1
  23.   }
  24.  
  25.   dataWrap = <h5 class="subheader subheaderlayout-{field:layout}">|</h5>
  26.   htmlSpecialChars = 1
  27.  
  28.   editIcons = tt_content:subheader,layout
  29.   editIcons.beforeLastTag = 1
  30.   editIcons.iconTitle.data = LLL:EXT:css_styled_content/pi1/locallang.xml:eIcon.subheader
  31.  
  32.   prefixComment = 2 | Subheader:
  33. }
  34.  
  35.  
  36. //-----------------------------------------
  37. // lib.subheader mit jeden type mergen
  38. tt_content.header {
  39.   // Typ Header beinhaltet in .20 eine Subheaderkonfiguration (Überbleibsel oder so)
  40.   20 >
  41.   // füllen mit Konfiguration für aktuelles Projekt
  42.   20 < lib.subheader
  43. }
  44.  
  45. tt_content.text {
  46.  15 = TEXT
  47.  15 < lib.subheader
  48. }
  49.  
  50. tt_content.image {
  51.  15 = TEXT
  52.  15 < lib.subheader
  53. }
  54.  
  55. tt_content.textpic {
  56.  10.15 = TEXT
  57.  10.15 < lib.subheader
  58. }
  59.  
  60. tt_content.bullets {
  61.  15 = TEXT
  62.  15 < lib.subheader
  63. }
  64.  
  65. tt_content.table {
  66.  15 = TEXT
  67.  15 < lib.subheader
  68. }
  69.  
  70. tt_content.uploads {
  71.  15 = TEXT
  72.  15 < lib.subheader
  73. }
  74.  
  75. tt_content.table {
  76.  15 = TEXT
  77.  15 < lib.subheader
  78. }
  79.  
  80. tt_content.multimedia {
  81.  15 = TEXT
  82.  15 < lib.subheader
  83. }
  84.  
  85. tt_content.swfobject {
  86.  15 = TEXT
  87.  15 < lib.subheader
  88. }
  89.  
  90. tt_content.qtobject {
  91.  15 = TEXT
  92.  15 < lib.subheader
  93. }
  94.  
  95. tt_content.media {
  96.  15 = TEXT
  97.  15 < lib.subheader
  98. }
  99.  
  100. tt_content.search {
  101.  15 = TEXT
  102.  15 < lib.subheader
  103. }
  104.  
  105. tt_content.login {
  106.  15 = TEXT
  107.  15 < lib.subheader
  108. }
  109.  
  110. tt_content.splash {
  111.  15 = TEXT
  112.  15 < lib.subheader
  113. }
  114.  
  115. tt_content.menu {
  116.  15 = TEXT
  117.  15 < lib.subheader
  118. }
  119.  
  120. tt_content.shortcut {
  121.  15 = TEXT
  122.  15 < lib.subheader
  123. }
  124.  
  125. tt_content.list {
  126.  15 = TEXT
  127.  15 < lib.subheader
  128. }
Advertisement