hi – please could you point me in the right direction - I'm sure it’s a simple thing I want to achieve!
I have a template called engagements.php (non-cloneable) and a cloneable template called concert-dates.php.
On engagements.php I want to have sub-navigation consisting of ‘Upcoming’ and ‘Previous’ - i.e. simply split all the concert-dates.php into 2 lists - one in the past and one in the future.
The default listing on engagements.php will be all the upcoming concert-dates.php i.e. from today onwards. On selecting ‘Previous’ the listing will show concert-dates.php in the past.
I think I can simply use the following for ‘Upcoming’
and the following for ‘Previous’
However, having thought this was simple to do, I am struggling to tie together the <cms:pages> tags with the sub-navigation for 'Upcoming' and 'Previous' and the listings returned by the <cms:pages> tag.
Thanks.
I have a template called engagements.php (non-cloneable) and a cloneable template called concert-dates.php.
On engagements.php I want to have sub-navigation consisting of ‘Upcoming’ and ‘Previous’ - i.e. simply split all the concert-dates.php into 2 lists - one in the past and one in the future.
The default listing on engagements.php will be all the upcoming concert-dates.php i.e. from today onwards. On selecting ‘Previous’ the listing will show concert-dates.php in the past.
I think I can simply use the following for ‘Upcoming’
- Code: Select all
<cms:pages masterpage='concert-dates.php' order='asc' show_future_entries='1' start_on="<cms:date format='Y-m-d' gmt='1' />" >
and the following for ‘Previous’
- Code: Select all
<cms:pages masterpage='concert-dates.php' order='asc' show_future_entries='0 >
However, having thought this was simple to do, I am struggling to tie together the <cms:pages> tags with the sub-navigation for 'Upcoming' and 'Previous' and the listings returned by the <cms:pages> tag.
Thanks.