Kirby 3 Recently Modified - show edited pages by current panel user

I am creating posts for my plugins to make it easier to find them using the forum search and not just the docs search.

recently-modified

Add the section to your blueprint.

site/blueprints/default.yml

sections:
  recmodByUser:
    type: recentlymodified
    headline: Your Recently Modified Pages

The plugin comes with a default query that shows the most recent changes made by the currently logged in user. But you can define any other query you like.

Example 1

sections:
  recentarticles:
    type: recentlymodified
    headline: Recently Modified Articles
    query: site.find('articles').children.listed.sortBy('modified', 'desc')

v1.2 adds a field that you can add to your page blueprints to see which user modified the page most recently. you can also set an interval for the field to update if you have multiple editors working at the same time.

field

Is there a way to show the “Recently modified by User” name & date on the frontend?

Update :slight_smile: found it:
<?= $page->modified(option('bnomei.recently-modified.format')) ?>

you can also get the user that did the modification from the plugins cache using $page->findRecentlyModifiedByUser()

1 Like

cool, thanks bnomei :slight_smile: