Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
First loving CouchCMS. Thanks so much for all the work.

So I'm wondering if there is away to display posts based on more than just a folder/author. If I set a drop down that has the days of the week and another that has a list of teachers. Would it be possible to on one page query the days and display the content based on which day the class will be held and on another query the assigned teacher and display hie/her classes?

So this page http://duzawe.com/Yogaloft/classes.php displays the classes by day.

Then this page displays by teacher http://duzawe.com/Yogaloft/teachers_details.php?p=5
Hello and welcome to our forums, DuzAwe :)
I'm glad you found Couch useful.

Replying to your query -
actually you can display posts based on any of the editable region you have defined for the template. I think you'll find the following post useful -
viewtopic.php?p=11861#p11861

Additionally you can use 'relations' to associate separate templates and then query one using the other - please see http://www.couchcms.com/docs/concepts/r ... ships.html

Applying this to the specific use-case you mentioned, if the 'classes' have editable regions for 'days' and 'teachers', we can easily query the pages using data in those.

Hope this helps.
That is exactly what I was looking for awesome.

Thanks for the help.
3 posts Page 1 of 1
cron