FriendsOfREDAXO / tricks

Tipps und Tricks rund um REDAXO 5
https://friendsofredaxo.github.io/tricks/
MIT License
105 stars 33 forks source link

rex_list attribute #99

Closed cukabeka closed 4 years ago

cukabeka commented 6 years ago

Q

Gibt es eine Möglichkeit, in einer rex_list Einfluss darauf zu nehmen, was genau in den Attributen des <th> und <td>-Tags steht? Also nicht der Inhalt...

A

yes. funktioniert über die methode setColumnLayout

zu sehen z.b. hier https://github.com/redaxo/redaxo/blob/master/redaxo/src/addons/cronjob/pages/cronjobs.php#L67 https://github.com/redaxo/redaxo/blob/master/redaxo/src/core/lib/list.php#L330-L339 (edited)

$list->setColumnLayout('name', ['Test ###VALUE###', 'Test ###VALUE###']);

alxndr-w commented 6 years ago

Gehört eher in die Doku, aber gut, dass es schon mal hier steht. Danke!

skerbis commented 6 years ago

Steht in der Doku sollte aber mal ‚ausgemalt‘ werden