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.

Support

Configuring the yaml frontmatter provided by admin editor

admin

Started by Rance Hall 1 year ago · 2 replies · 60 views
1 year ago

I am seeking a method to have the gui editor in the admin section automatically add the Full name of the user that saves an initial blog post instead of the site user.

I don't care about future editors, just who wrote it originally. I've adjusted the theme to use page.header.author to display the field, which works when I manually edit the front matter.

If I understand correctly, this is a blueprint, but I couldn't find an example close enough to my use case to explain how I should go about this.

Will someone please point me in the right direction?

1 year ago

It would seem so. thanks for the tip, now to figure out the "name" of the logged in user,

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 60 16 hours ago
Support · by Anna, 3 days ago
2 66 19 hours ago
Support · by Justin Young, 19 hours ago
1 33 19 hours ago
Support · by Duc , 1 week ago
2 69 6 days ago
Support · by Colin Hume, 1 week ago
2 61 6 days ago