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!
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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.