Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: 'Editor' of entries #5313

Open
Mikesnoeren opened this issue Dec 6, 2019 · 2 comments
Open

FR: 'Editor' of entries #5313

Mikesnoeren opened this issue Dec 6, 2019 · 2 comments

Comments

@Mikesnoeren
Copy link

@Mikesnoeren Mikesnoeren commented Dec 6, 2019

Currently craft doesn't show enough information for who makes and edits an entry:

We have the following information available when we make an entry:

  • Date created
  • Author

We have the following information available when we update an entry:

  • Date updated

Why not add 'Editor' so we can see who edited an entry? We have had multiple situations where it would be useful to be able to see this information. This could be added to all types, not just to entries.

@brandonkelly

This comment has been minimized.

Copy link
Member

@brandonkelly brandonkelly commented Dec 6, 2019

If the entry’s section has versioning enabled, you can tell who last edited the entry by checking its latest revision:

{% set lastRevision = craft.entries()
    .revisionOf(entry)
    .one() %}

{% set lastEditor = lastRevision.creator ?? null %}

{% if lastEditor %}
    <p>Last edited by {{ lastEditor.name }} on {{ lastRevision.dateCreated|date('short') }}</p>
{% endif %}
@Mikesnoeren

This comment has been minimized.

Copy link
Author

@Mikesnoeren Mikesnoeren commented Dec 6, 2019

I am aware of the possibility to get the Editor on template level. Unfortunately that doesn't fit out needs. It would be nice to see the Editor within Craft itself. So you could sort entries on last editor for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.