4 votes

Content approval by roles

Workbench is a great way to do this if you are OK with installing another module. Workbench allows you to add moderation states. By default it gives you 'draft', 'published', and 'needs review'. (...
Caroline Casals's user avatar
3 votes

How to build a simple content approval workflow between an administrator and a user?

Have a look at my answer to "How to implement a multi step approval with webforms/entityforms based on form components?". It explains how you can implement a workflow that is pretty (though not ...
Pierre.Vriens's user avatar
3 votes

"This entity (node: id) cannot be referenced" error

The view_unpublished "module allows you to grant access for specific user roles to view unpublished nodes of a specific type. Access control is quite granular in this regard." composer require drupal/...
Hugo's user avatar
  • 663
2 votes
Accepted

Redirect to home after NODE_ACCESS_DENY

The idea of creating a menu entry to redirect in the case of a 403 is fine, except that you need to configure the core handler to point to it, which is the element missing from your question (it's ...
Alfred Armstrong's user avatar
1 vote
Accepted

Workbench Moderation: Published data overriding draft data on draft view

It was a two-part solution. There was a bug that needed patch #16 from here: https://www.drupal.org/project/workbench_moderation/issues/2021903 I also needed to add vid to node_load: When I ...
Sam's user avatar
  • 603
1 vote

How to send an email to select set of users for moderation states?

you can maybe use rules module alternatively create a custom module and you can inspire from this, that is used with core content moderation module: use \Drupal\user\Entity\User; /** * * * ...
Matoeil's user avatar
  • 3,429
1 vote
Accepted

Use Rules to notify original author when their node is published

Rules is great, but sometimes also tough to debug if things don't work as you'd expect. In your case, either something unexpected happens in your Rules Conditions, or there is some error in your Rules ...
Pierre.Vriens's user avatar
1 vote

Using Workbench Moderation state changes as events

Since Workbench Moderation is in Drupal Core you can use https://www.drupal.org/project/content_moderation_notifications
David Reichling's user avatar
1 vote
Accepted

Using Workbench Moderation state changes as events

We are using Workbench Email to accomplish this on our D8 site, would this work for you?
SuperTony's user avatar
  • 144
1 vote

How to display unpublished contents in views for all the users?

Add Permission - Workbench Moderation : View all unpublished content.
neha's user avatar
  • 662
1 vote

Create short link automatically with ShURLy

As per the current module functionalities it does not seem to have that feature. So I think you need to create custom module. In your custom module you will require to use hook_node_insert (For ...
parth.k's user avatar
  • 1,014
1 vote

"This entity (node: id) cannot be referenced" error

Check that the view does not have a filter for 'Content: Published (=Yes)'. The validator uses an entity_reference view to get a list of valid entity ids. If the entity selected (e.g. from ...
Interlated's user avatar
  • 1,413
1 vote

"This entity (node: id) cannot be referenced" error

We can use this module entity_reference_unpublished. Or add "bypass node access" permission. !!! This is very powerful permission that you may not want to give to your editors.
Denis Viunyk's user avatar
1 vote
Accepted

"This entity (node: id) cannot be referenced" error

The issue was that the field was used to reference unpublished nodes and kept throwing the error. I updated the field to allow unpublished nodes too. It worked.
harnamc's user avatar
  • 421
1 vote

How to make a rule select all users of a role?

It appears to me that there is a straight forward solution to have your rule process all those users of a certain role (as in your question): you could an approach to process the results of a VBO ...
Pierre.Vriens's user avatar
1 vote
Accepted

Check if Workbench Content Has Published Revision

I'm assuming this question is about D7 ... Step 1 - Flag published revisions Use the Flag module to flag Workbench content whenever a published revision gets created. The flag you'd want to use is a ...
Pierre.Vriens's user avatar
1 vote
Accepted

hook_tokens() implementation no longer being called

hook_tokens() is invoked only when token_generate() is called. Since that doesn't necessarily happens when a node is viewed (or similar events), but it happens when a module calls token_replace(), ...
apaderno's user avatar
  • 97.4k
1 vote

Views content show current state - workbench

Instead of using the Filter criteria of the views, simply add a field Workbench Moderation: State which would show the present state of the content. Hoping that this would be helpful.
Nitesh Sethia's user avatar
1 vote

Views content show current state - workbench

Have you already installed workbench moderation module? I have used this module and it gives you a Workbench page with the tabs for each state of the nodes. The user can see which nodes are in Draft ...
Lucy's user avatar
  • 56

Only top scored, non community-wiki answers of a minimum length are eligible