{# Auswahlliste fuer Textkanaele, gruppiert nach Kategorie #} {% macro channel_select(name, channels, selected, types=("text", "news"), empty="– keiner –") %} {% set cats = channels | selectattr("type", "equalto", "category") | list %} {% endmacro %}