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.

General

Show frontmatter as fields in the normal mode?

admin

Started by nicolas 2 years ago · 2 replies · 87 views
2 years ago

Hi :)

I have pages with a various custom variables in the frontmatter, in fact a lot of content snippets that appear on the pages are stored in the frontmatter. It works great.

However, the only way to edit them from the admin panel is through the Expert mode, and only as the raw frontmatter code.

I would absolutely love a way to show all my frontmatter variables used on a page as fields in the admin panel when using the Normal mode. Is there a way to do this? A plug-in maybe?

If not I believe this would be a great improvement on Grav, to enable editors or clients to change content and options there without getting into code syntax. Maybe it could be a tab between “Content” and “Options”.

Let me know, thanks :)

👍 1
2 years ago

I realise this sounds like blueprints, and it’s basically that, but automatically and for all frontmatter variables. Most of my pages have different templates and a bunch of variables that are unique to them, and I’d rather not manually create a blueprint for each of them. Maybe that could be an “auto” keyword mode for blueprints?

2 years ago

Currently, there’s no built-in way to display frontmatter variables as fields in Normal mode. A plugin might help, or you could suggest this feature for future Grav updates to simplify content editing.

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 80 9 hours ago
General · by pamtbaau, 14 hours ago
1 51 13 hours ago
General · by Andy Miller, 1 day ago
0 44 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago