IchHabRecht icon

[TYPO3] Alternating table classes

IchHabRecht | PRO | 02/22/13 04:41:40 PM UTC | 0 ⭐ | 6021 👁️ | Never ⏰ | []
TypoScript |

1.12 KB

|

None

|

0 👍

/

0 👎

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()
        
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎