How do we disable the move button for published pages and enable the move button for unpublished pages,
This is in order to avoid the active pages being moved and the URL being changed.
Views
Replies
Total Likes
Hi @Nirmal_Kumar1 are you referring to AEM pages? https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/ct-p/adobe-experience-mana... this might be a better spot
Views
Replies
Total Likes
Did not find the related docs.
Views
Replies
Total Likes
Are you not able to access the link? It's to a separate forum where the AEM experts hang out. That might be a better location for your question if you are trying to work with AEM pages.
Views
Replies
Total Likes
Hi @Nirmal_Kumar1
You can try this solution and approach.
1. Add Custom Property:
2. Customize the Page Properties Dialog:
3. Use Permissions:
4. Implement Client-Side Logic:
$(document).ready(function() {
var publishStatus = "${currentPage.publishStatus}"; // Get the value of the publishStatus property
if (publishStatus === "published") {
$("#cq-move").prop("disabled", true);
} else {
$("#cq-move").prop("disabled", false);
}
});
5. Apply Customization:
6. Test Thoroughly:
7. Document Changes:
Remember that AEM environments can vary, and you might need to adapt the solution to match your specific AEM version and setup. Always test your customizations in a controlled environment before deploying them to a production instance.
Hope this information helps you !
Views
Replies
Total Likes
@Nirmal_Kumar1 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies