Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi
may it could be a good idea to add a css class based on the workbench status the node have.
I know about a module (menu view unpublished) which set a class to a menu entry in the book menu for new drafts - so the menu entries can appear maybe in grey and italic
Comments
Comment #2
snte CreditAttribution: snte as a volunteer commentedI think this would be useful. We did this for a project with a few lines in hook_preprocess_html.
We used this in Drupal 8:
And this should work in Drupal 7. Not too sure if ist is also "$node->moderation_state->target_id", but you can have a look at the variables with devel: