I have two types of functionality on a page that is listing tracks.php
1. sorting tracks - using this method https://www.couchcms.com/docs/advanced-tutorial/list-view.html
2. filtering tracks by tag - using this method https://www.couchcms.com/forum/viewtopic.php?f=2&t=9243&p=19515 - the tags are set up as a relation to tracks.
Both the sorting and the filtering are using querystrings and I can get the sorting to work and the filtering to work separately. But what I wish to do is to allow the sorting of filtered tracks. I guess it would go something like this:
1. visitor clicks on keyword 'cinematic' - a list of all tracks tagged with 'cinematic' are displayed
2. visitor wants these sorted by title - clicks on sort and the filtered list is sorted
THis mockup may help to make it clear:
I've tried various methods to achieve a URL something like this: website.com/tracks.php?tag=cinematic&sort=title
I've come up against a brick wall .... heeeeelp?!
1. sorting tracks - using this method https://www.couchcms.com/docs/advanced-tutorial/list-view.html
2. filtering tracks by tag - using this method https://www.couchcms.com/forum/viewtopic.php?f=2&t=9243&p=19515 - the tags are set up as a relation to tracks.
Both the sorting and the filtering are using querystrings and I can get the sorting to work and the filtering to work separately. But what I wish to do is to allow the sorting of filtered tracks. I guess it would go something like this:
1. visitor clicks on keyword 'cinematic' - a list of all tracks tagged with 'cinematic' are displayed
2. visitor wants these sorted by title - clicks on sort and the filtered list is sorted
THis mockup may help to make it clear:
I've tried various methods to achieve a URL something like this: website.com/tracks.php?tag=cinematic&sort=title
I've come up against a brick wall .... heeeeelp?!