Skip to content

Instantly share code, notes, and snippets.

@IchHabRecht
Created August 21, 2013 20:54
Show Gist options
  • Save IchHabRecht/6300141 to your computer and use it in GitHub Desktop.
Save IchHabRecht/6300141 to your computer and use it in GitHub Desktop.
[TYPO3] Alternating table classes
RTE {
## define table classes
classes.myCustomTable {
name = My custom table layout
alternating.rows {
# 0 = even, 1 = odd
startAt = 0
oddClass = row-odd
evenClass = row-even
oddHeaderClass = row-odd
evenHeaderClass = row-even
}
counting.columns {
startAt = 0
columnClass = td-count-
columnLastClass = td-last
columnHeaderClass = th-count-
columnHeaderLastClass = th-last
}
}
## set this so that row-odd and row-even are not being used together in the same row definition to allow the zebra effect
mutuallyExclusiveClasses = row-odd,row-even
proc.allowedClasses := addToList(row-even, row-odd, td-count-, td-last, th-count-, th-last, myCustomTable )
buttons.blockstyle.tags {
div.allowedClasses := addToList()
table.allowedClasses := addToList(myCustomTable)
tr.allowedClasses := addToList(row-odd, row-even)
td.allowedClasses := addToList(td-count-, td-last)
th.allowedClasses := addToList(th-count-, th-last)
}
buttons.textstyle.tags.span.allowedClasses := addToList()
buttons.link.properties.class.allowedClasses := addToList()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment