Disabling publish to preview option in CF when required fields are not authored. | Community
Skip to main content
Level 3
July 15, 2024

Disabling publish to preview option in CF when required fields are not authored.

  • July 15, 2024
  • 2 replies
  • 748 views

I've implemented a new option for publish to preview, but I'm unable to find where to disable the option if required fields in my content fragment are not authored.

Can anyone help me with the path in libs where Quick Publish and Manage Publication options are disabled if required fields are not authored, so that the same I can override.

 

Thanks in Advance!

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

2 replies

somen-sarkar
Community Advisor
Community Advisor
July 15, 2024

Hi @priyak-1 ,

Pls check the below paths :-

/libs/wcm/core/content/sites/jcr:content/actions/selection/quickpublish, 

/libs/wcm/core/content/sites/jcr:content/actions/selection/managepublication.

Check the below tread and it may be helpful .

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-hide-quickpublish-amp-manage-publication-in-sites-for/m-p/354838

 

Thanks,

Somen

priyak-1Author
Level 3
July 15, 2024

Hi @somen-sarkar,

 

I have went through the thread which you mentioned. Its hiding for specific users. But in my case I've to hide based on authoring. 

Attaching screenshot for better understanding, here if a required field is not authored by default rest of options are disabled. So I want to implement same for publish to preview option.

 

 

priyak-1Author
Level 3
July 29, 2024

These are the paths which I've found from where its getting picked.

/libs/dam/cfm/admin/clientlibs/v2/adminpage/core.js

/libs/dam/cfm/admin/clientlibs/v2/adminpage/page.js

But rather than overlaying, I've added custom script for this requirement, which is working as expected.