Hi,

After get available this option for revisionned content,
What about content (nodes in particular) with no revision ? On D6 it was possible to get the last editor of a content. Is it possible to achieve this on D8 ? If yes, how ?

Thanks

CommentFileSizeAuthor
#8 admin-activity-view.txt20.44 KBcrutch
#8 last-editor-d9.jpg92.48 KBcrutch

Comments

aiphes created an issue. See original summary.

idebr’s picture

Status: Active » Fixed

Hi aiphes,

The option to display the revision author as a field in the admin/content overview was introduced in 8.8.2, see #2769289: Can't show 'revision author' on views of type 'Content' for more information.

aiphes’s picture

I know and I use it but this don't display the right data if the content doesn't use revisions..perhaps a setting is needed ?

idebr’s picture

Without revisions Drupal does not know who was the last editor. The first step is to add this data to the database, then you can display the value on the content overview.

aiphes’s picture

The first step is to add this data to the database

which data ? revision or last editor ?
for the second case, I would to explain to me how to do because I actually know doing the 1st case.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

aiphes’s picture

Version: 8.8.4 » 10.0.x-dev

I reopen this issue actually not fixed. If someone can indicate a way to achieve as I done in D6 (with relationship) it would be great.

Thanks

crutch’s picture

StatusFileSize
new92.48 KB
new20.44 KB

I'm working on this now because the organization needs an "Administration Activity" page to include the ability to filter last editor, replicating what we have in d7 currently. This has proven to be difficult.

In short, if you want to do this you are required to use revisions and enable them per content type. But you must in some way also force the content editor to create a new revision every time they edit the node so that the latest user is recorded for that revision.

One way to do this is enable content moderation module (core). Another way to do this without enabling moderation is to just hide with CSS .entity-content-form-revision-information or only the checkbox .form-item--revision so that the editor can still add a Revision log message. The checkbox is checked by default when you have enabled revisions for all content types that you want to monitor in your view.

---
Tried and failed: This post does not work without the revision system. I didn't test this with the revision system active. https://drupal.stackexchange.com/questions/272109/how-do-i-display-the-l...

This post also suggests using embedded views which are not filterable/sortable. This by itself made this potential solution no good for us.

---

Once revisions are activated then you can create a simple view to get what you need. The attached View export should work with revisions enabled. Add filter of Content Type to exclude types.

Reference: https://www.drupal.org/docs/administering-a-drupal-site/node-revisions

crutch’s picture

I think #2 is a core functionality fix. This issue is different, we still have the revision system requirement. Maybe this should be set by the maintainers as, Closed (Works as designed) not Closed (Fixed)