Hi Users of CouchCMS
Following situation:
I'm building a website for our local scouting group and they're having different age-groups and each group has different leaders.
Now they're some activities they do with the other groups together, in which case I want to list all leaders of both groups.
So far so good.
Now my problem is that I can order those leaders by the group they're leading or the "order" field I created in the masterpage, but not both.
I looked it up in the pages documentary, but it doesn't seem to work.
The leaders are displayed.
Has anyone had similar problems? How do I solve it?
Thanks a lot!
- Helagon
Following situation:
I'm building a website for our local scouting group and they're having different age-groups and each group has different leaders.
Now they're some activities they do with the other groups together, in which case I want to list all leaders of both groups.
So far so good.
Now my problem is that I can order those leaders by the group they're leading or the "order" field I created in the masterpage, but not both.
I looked it up in the pages documentary, but it doesn't seem to work.
The leaders are displayed.
Has anyone had similar problems? How do I solve it?
Thanks a lot!
- Helagon
- Code: Select all
<cms:pages masterpage="data/leiter.php" custom_field="stufe = <cms:php>echo str_replace('|', ' , ' , '<cms:show stufe />');
</cms:php>" orderby='reihenfolge, stufe' order="asc">
<cms:show k_page_title />
<cms:php>
if('<cms:show k_total_records />' > '<cms:show k_count />'){
echo ',';
}
</cms:php>
</cms:pages>