I would like to create a route for the entry types of a specific section, pointing to a single template.
Is it possible to do this automatically? So far I haven't had luck, I'm thinking something like this:
- route = /{ mysection.type }
- template = type/index.twig
Or would I need to create a route for each entry type and all of them pointing to same template?
- route 1 = /entryType1
- route 2 = /entryType2
- route 3 = /entryType3
- shared template = type/index.twig
The reason I would like to do it this way, as opposed to how it has been shown before, here; is because I would like to keep all the URL's with a date format, i.e.: example.com/2014/07/11/slug so that I can then implement an archive template. But I still need a way to filter by entry types (a total of 12 types). So that at the end of the day I end up with URLs like these ones:
- example.com/2014/01/01/example-entry - URL for Example Entry
- example.com/2014/01/01/ - URL for listing entries from day
- example.com/2014/01/ - URL for listing entries from month
- example.com/2014/ - URL for listing entries from year
- example.com/video/ - URL for Video types of entry
- example.com/audio/ - URL for Audio types of entry
Any suggestions on how to solve this?