8

I am using the Content Moderation module in Drupal 8.2 and I have noticed there is no way to re-unpublish a node once it has been moderated into a published state. I'm able to create a new draft of the content and moderate that through to published state but I can't find a way to actually unpublish the node.

There is a bug issue on DO that seems related, but looking at the patch it only adds a message informing you that you can't unpublish content directly once under moderation. Which makes sense as having content moderation enabled means you are handing over control of publish/unpublish to that module. But that leaves the question of how to actually unpublish a node that is under moderation?

I understand this module is currently experimental but am fairly sure I am missing something here.

2 Answers 2

5

You can enable the default revision for all the states. If there is any transition in any state from publish to draft or any state.

enter image description here

2
  • Thanks for this, i re-instated the archived state which i had deleted and set the default revision flag and everything is now as expected.
    – Rob Holmes
    Jan 20, 2017 at 8:12
  • This helped me figure out the problem. Edit each of your custom workflow states and select the Default revision. This allows content to go back to being unpublished. Hope this helps someone who is battling this slightly confusing issue. Jun 30, 2020 at 20:42
0

Although Sumit Madan solution explains what is the reason and how you can have unpublished/published content with moderation state still you are not able to update bulky.

This is a solution I found for my cause, it may be helpful for others,

first, install https://www.drupal.org/project/moderated_content_bulk_publish module.

second, if you don't have archived state, create it. you can label it to whatever you want but machine name should be archived ( because moderated_content_bulk_publish acts based on that).

then go to your admin/content page and bulky Publish/unpublish current revision.

That's it. there will be no "One or more entities were skipped as they are under moderation and may not be directly published or unpublished" warning anymore

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.