Collections can be used in templates and snippets like this:
You can loop through the collections like through any collection like this:
Or store the collection in a variable for further use:
If you have a lot of collections, it might come handy to organize them in subfolders. Kirby can handle this:
- It's always a good idea to provide a collection that is not too specific yet.
- In general, it's better not to apply pagination to collections for example, or to set a limit. You might want to use the same set of pages in different places, but in one template you need three and in the next you need 10.