Is it possible to unpublish a page (or revert a state) in Comala Workflows?

Teresa Hollidge October 4, 2016

We use a global space workflow that is applied to all pages within a space. Increasingly we find that we have one or two pages in some spaces that we do not want to publish and we do not want the contents of the pages to be returned in the search results. Unfortunately, these "do no publish" pages frequently get published despite our efforts to the contrary. 

Is it possible to "unpublished" these pages? Or is it possible to somehow mark a page as exempt from the workflow that applies to rest of the space?

Resetting the state of the page back to draft doesn't help because the page still has a published version. I need a way to remove the published version or prevent the published version from ever being created for these specific pages. I'm happy to do this what needs to be done for the individual pages - there are only a few pages that need this special treatment out of the thousands that we expose to our customers.

Thanks in advance!

 

1 answer

3 votes
Miguel Reimer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 5, 2016

Hi Teresa,

If you are using a version of Comala Workflows after 4.9, we have a feature where you can specify that pages with a particular label don't have the workflow enabled.  In other words, the workflow will still work on all the existing pages as it does now, unless the specific label is added to the page.  Adding the label on an existing page will de-activate the workflow.

Say this is the top line of your workflow markup:

{workflow:name=Workflow}

and we don't want pages with the "noworkflow" label to get a workflow.  The top line of the workflow markup would then look like this:

{workflow:name=Workflow|label=noworkflow|invertlabel=true}

You can also add "|stickylabels=noworkflow" to the above line, which means only admins can remove the label from the page.

 

That all said, de-activating the workflow on pages means that our draft/published functionality is disabled and all viewers of the space will be able to directly see the page content.  So to hide those pages we'll need to add a new global workflow to all the spaces to add page view restrictions at the same time the main workflow is deactivated.  Here's a sample workflow to do that:

{workflow:name=Hide Pages With No Workflow}
{trigger:labeladded=noworkflow}
{add-restriction:type=View|user=USERS}
{trigger}
{workflow}

Replace "USERS" with a comma separated list of the users who can view/edit the page or alternatively use "group=GROUPS" with a comma separated list of the groups who can view/edit the page.  You can also use both the "user" and "group" parameter at the same time to add page restrictions for a combination of users and groups.

 

Please give that a try and let us know if you have any further questions.

Thanks,
Miguel

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events