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

Which custom fields

Started by Muut Archive 11 years ago · 2 replies · 272 views
11 years ago

Hi,

Just investigating on GRAV after trying Statamic. GRAV's website says: "The flat-file nature of Grav lets you define custom fields for any of your pages, including modular content".
Is there any documentation on that: which custom-fields are possible, how to use them etc.

Thanks in advance.

Mark

11 years ago

Grav supports YAML frontmatter, so you can simply create anything in that front matter that YAML supports: http://learn.getgrav.org/advanced/yaml.

You can also put markdown or even JSON data in headers and extract them into manipulatable objects at the Twig layer.

You can use forms and blueprints to provide a UI for those fields via the admin plugin. So you have a lot of field types available for those:

Blueprints | Grav Documentation 2015-10-25 08-57-28

Blueprints | Grav Documentation 2015-10-25 08-57-48

11 years ago

Rhukster, thanks for this quick response.
I will investigate your urls and infos.

Mark

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1345 9 years ago
Archive · by Muut Archive, 9 years ago
2 933 9 years ago
Archive · by Muut Archive, 9 years ago
2 4060 9 years ago
Archive · by Muut Archive, 9 years ago
1 2945 9 years ago
Archive · by Muut Archive, 9 years ago
3 1117 9 years ago