Show only specific workflows for different sites in CQ5 Sidekick | Community
Skip to main content
Level 3
October 16, 2015
Solved

Show only specific workflows for different sites in CQ5 Sidekick

  • October 16, 2015
  • 2 replies
  • 828 views

Hi,

 

Can anyone help me how to show specific workflows only based on the site.

 

I have 2 sites in my application. I have to show only specific workflows and hide all other workflows in the sidekick. same to the other site.  Am using AEM5.6.1

 

Please help me to achieve this.

 

Thanks in advance!!!

 

Sony C.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by edubey

As @lokesh mentioned, OOB you cannot restrict the workflows based on the sites.

As a solution you can override /libs/cq/ui/widgets/source/widgets/wcm/Sidekick.js  file  and customized the list according to the sites you have.

Workflow list using the below service /libs/cq/workflow/content/console/workflows.json?tags=wcm

Create your own service and customize the JS to use your custom service  that would work for you

2 replies

edubey
edubeyAccepted solution
Level 10
October 16, 2015

As @lokesh mentioned, OOB you cannot restrict the workflows based on the sites.

As a solution you can override /libs/cq/ui/widgets/source/widgets/wcm/Sidekick.js  file  and customized the list according to the sites you have.

Workflow list using the below service /libs/cq/workflow/content/console/workflows.json?tags=wcm

Create your own service and customize the JS to use your custom service  that would work for you

Lokesh_Shivalingaiah
Level 10
October 16, 2015

Hi Sony,

OOB, You cannot restrict the workflows based on the sites rather you can restrict based on the Users and Permissions so that when the author logs in only the workflows for which they have the permission would be shown in the sidekick. refer [1] for the same to achieve.

[1] https://docs.adobe.com/docs/en/cq/5-6-1/workflows/wf-admin.html

If you want the behaviour for a specific site, then it should be customized at the siteadmin.js level on the logic how the list of models are fetched.