Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

Define site wide collections of types

Started by Muut Archive 10 years ago · 0 replies · 242 views
10 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 1279 9 years ago
Archive · by Muut Archive, 9 years ago
2 886 9 years ago
Archive · by Muut Archive, 9 years ago
2 4015 9 years ago
Archive · by Muut Archive, 9 years ago
1 2891 9 years ago
Archive · by Muut Archive, 9 years ago
3 1075 9 years ago