If I were to have entries of types: Book, Film, Note, Post and Bookmark. How would I automatically create a list of links (or a filter) to each entry type?
First, get your section. The following code will return you a SectionModel:
Next, get the Entry Types off it. This will return you an array of EntryTypeModel objects:
From there you can loop through them to create your nav:
You’ll want to create a Route which accepts those dynamic URLs (e.g.
From that _type template, you can fetch entries of the requested type like this: