Content Moderation Basics for Drupal 8

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
today we're going to talk about building a content moderation workflow for a drupal 8 using the content moderation module and Drupal core so to get started let's enable the module once the content moderation module is enabled we can head over to configuration workflow and go to the workflows page and we have one default workflow available on our site called editorial so to see how this works we're going to go ahead and edit it in the default editorial workflow content starts out as a draft then it gets published and eventually it can be archived so draft content is not available on the site for people who aren't logged in as an administrator you can go ahead and add more states for example if you needed to have a stage between draft and published where content was set to needs review you could add that as a state here every workflow also has transitions so transitions are how we move content from one state to another you can see that there's transitions setup to move content between each existing state so if you wanted to add something like the needs review state you'd have to go and adjust the transitions as well we also can customize what types of content each workflow applies to so here we see that nothing is selected so far no content types no block types so to actually get this workflow working on our site we can go in and select content types that the workflow will apply to now that we've enabled the content moderation workflow let's test it out so I can go ahead and create an article and you'll see that there's a save as draft section that's been added to this page so instead of a simple check box for setting content to be published or unpublished like we have by default in Drupal we can control the current status of the content so let's say that this content starts off as a draft at this point I could come along and decide to publish the draft and then the content is live on the site so anyone can access it at this point in the workflow maybe another editor comes along and decides to make an update so when I edit the content I again have the choice to save it as a draft or to make it published so let's make some updates and see what this does I'm saving it again as a draft now at this point there is still a published version of the content that doesn't include my updates and that stays live on the site this is one of the most powerful things about having a content moderation workflow it's the fact that you can draft changes of the content while still having a version of the content that's live on the site if I click on latest version I'm gonna see my most recent updates and if I click on revisions I'm gonna see all the changes I'm going to see the original version of the content the current version and then I can also see the most recent version that I've created which is also available under latest the latest version tab so to publish this content I do the same thing I could come here and select published and click apply and then my updates are going to be live on the site as well so content moves from draft to published but then we can go back to having a draft version of the content as well and each change is saved as a revision in the database one last thing to note is that once you've installed the content moderation module you'll have a new view available to view all the drafts of content that you've created so on the content page the normal content overview page you'll have a new tab for moderated content where you can review all the content drafts that have been set up and this view is created using content revisions so if you actually want to build more views like this on your site instead of creating a normal view of content you want to make sure that you create the view to show content revisions and then you'll have access to things like the moderation state of the content
Info
Channel: Evolving Web
Views: 7,093
Rating: 4.9310346 out of 5
Keywords: Drupal 8, Content moderation, content publishing, workflow
Id: 8R2qiFMU8v8
Channel Id: undefined
Length: 5min 10sec (310 seconds)
Published: Tue Mar 06 2018
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.