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

How to add a "last modified by <user>"?

theme

Started by Jean-Philippe Robichaud 7 years ago · 0 replies · 678 views
7 years ago

Hi, currently, we have multiple users defined for our system. I have added

Last Modified on <time datetime=" {{ page.date|date("M d Y") }}" class="entry-date entry-meta-element modified" title=" {{ page.date|date("M d Y") }}" itemprop="dateModified"> {{ page.date|date("M d Y") }} </time>

To our theme page.html.twig and it works well but I'd like to add also the name or email of the user who last modified that page. The page.header.author doesn't help much as it's not defined by default and I guess it wouldn't necessarily be updated when an different user comes in and edit a specific page.

Any tips?

Suggested topics

Topic Participants Replies Views Activity
General · by Hanns Mattes, 18 hours ago
1 22 11 hours ago
General · by Andy Miller, 11 hours ago
0 23 11 hours ago
General · by Jerry Hunt, 5 days ago
2 144 2 days ago
General · by pamtbaau, 2 days ago
1 95 2 days ago
General · by Andy Miller, 2 days ago
0 79 2 days ago