Advertisement
IchHabRecht

[TYPO3] Alternating table classes

Feb 22nd, 2013
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. RTE {
  2.     ## define table classes
  3.     classes.myCustomTable {
  4.  
  5.         name = My custom table layout
  6.        
  7.         alternating.rows {
  8.             # 0 = even, 1 = odd
  9.             startAt = 0
  10.             oddClass = row-odd
  11.             evenClass = row-even
  12.             oddHeaderClass = row-odd
  13.             evenHeaderClass = row-even
  14.         }
  15.        
  16.         counting.columns {
  17.             startAt = 0
  18.             columnClass = td-count-
  19.             columnLastClass = td-last
  20.             columnHeaderClass = th-count-
  21.             columnHeaderLastClass = th-last
  22.         }
  23.     }
  24.  
  25.     ## set this so that row-odd and row-even are not being used together in the same row definition to allow the zebra effect
  26.     mutuallyExclusiveClasses = row-odd,row-even
  27.  
  28.     proc.allowedClasses := addToList(row-even, row-odd, td-count-, td-last, th-count-, th-last, myCustomTable )
  29.    
  30.     buttons.blockstyle.tags {
  31.         div.allowedClasses := addToList()
  32.         table.allowedClasses := addToList(myCustomTable)
  33.         tr.allowedClasses := addToList(row-odd, row-even)
  34.         td.allowedClasses := addToList(td-count-, td-last)
  35.         th.allowedClasses := addToList(th-count-, th-last)
  36.     }
  37.    
  38.     buttons.textstyle.tags.span.allowedClasses := addToList()
  39.     buttons.link.properties.class.allowedClasses := addToList()
  40.        
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement