Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Define site wide collections of types

Started by Muut Archive 11 years ago · 0 replies · 403 views
11 years ago

How can I define site wide collections of types, and refer to the them in blueprints for a page type?

For example, I want to create a single list of a custom type called 'Technology'. A 'Technology' object has two properties: a CSS class and a title. I'd like to create a list of these classes in a single place, then use that list as a source for a multiselect field in a page template - ie I want to several technologies and iterate through the selected ones in a Twig template.

Is this possible? If so how would I go about it?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2567 9 years ago
Archive · by Muut Archive, 9 years ago
2 1690 9 years ago
Archive · by Muut Archive, 9 years ago
2 4982 9 years ago
Archive · by Muut Archive, 9 years ago
1 3808 9 years ago
Archive · by Muut Archive, 9 years ago
3 1800 9 years ago