Sitecore - Confirmation before unpublishing root folder

77 views Asked by At

Consider:

Enter image description here

Is there a way we can prompt with a confirmation alert in case the root folder is selected to be unpublished?

Publishrestriction (Change)Publishing Settings"Publishable" check box false get an alert "not to unpublish the root folder.

2

There are 2 answers

0
Mummz On BEST ANSWER

We can disable root unpublish with the following steps.

  1. Select the "root item"
  2. Take the “Configure” tab from the menu
  3. Click on the “Protect Item”

To test this, go to the “Publish” tab then click on “View”. You will see the “Publishable” checkbox disabled. enter image description here

enter image description here

1
Chris Auer On

Your best bet is to lock the item. Then no one can unpublish it. https://doc.sitecore.com/users/92/sitecore-experience-platform/en/lock-and-unlock-an-item.html