hi all, i have a question, didn't found at manual and at forum
in template i have:
in output as a default i have
question is:
how to get lessons by lesson_nr as numeris 1,2,3,4,5 or 5,4,3,2,1
or by lesson_name by A-Z or Z-A
and what about limit? like i want to show at main page from other masterpage for example:
in template i have:
- Code: Select all
<cms:repeatable name='lessons' >
<cms:editable type='text' name='lesson_date' label='Lesson date' />
<cms:editable type='text' name='lesson_nr' label='Lesson name' />
<cms:editable type='text' name='lesson_name' label='Lesson description' />
<cms:editable type='text' name='lesson_description' label='Lesson description' />
</cms:repeatable>
in output as a default i have
- Code: Select all
<cms:show_repeatable 'lessons' >
<cms:show lesson_date /> <br>
<cms:show lesson_nr /> <br>
<cms:show lesson_name /> <br>
<cms:show lesson_description /> <br>
</cms:show_repeatable>
question is:
how to get lessons by lesson_nr as numeris 1,2,3,4,5 or 5,4,3,2,1
- Code: Select all
<cms:show_repeatable 'lessons' orderby='lesson_nr' order='asc'>
or by lesson_name by A-Z or Z-A
- Code: Select all
<cms:show_repeatable 'lessons' orderby='lesson_name' order='asc'>
and what about limit? like i want to show at main page from other masterpage for example:
- Code: Select all
<cms:pages masterpage='lessons.php'>
<cms:show_repeatable 'lessons' orderby='lesson_date' order='desc' limit='5'>
.......
</cms:show_repeatable>
</cms:pages>