Unable to cancel inheritance individually in rolled out pages | Community
Skip to main content
adobefor
Level 2
October 16, 2015
Solved

Unable to cancel inheritance individually in rolled out pages

  • October 16, 2015
  • 2 replies
  • 874 views

I have a header component within which I have wrapped 3 more components.When I roll-out the page, the new page's inheritance lock is such that when I unlock the top most component (i.e, the main header that wraps the remaining), even the ones under that are getting unlocked(inheritance cancelled) which I don't want to happen. Please suggest if there is any way to avoid this without a JSP work around. Please find the code below:

    <header class="header" role="header" id="header"><div class="header_wrap"><div class="header_main"><div class="row"><cq:include path="./globalNav1" resourceType="component1" /><cq:include path="./globalNav2" resourceType="component2" /><cq:include path="./globalNav3" resourceType="component2" /></div</div></div></header>
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 Sham_HC

Control the config at component level [1] Or in editcontext set the property cq:cancelledForChildren to false. 

[1]

editContext.getEditConfig().setDeepCancel(false);

2 replies

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

Control the config at component level [1] Or in editcontext set the property cq:cancelledForChildren to false. 

[1]

editContext.getEditConfig().setDeepCancel(false);

adobefor
adobeforAuthor
Level 2
October 16, 2015

Thanks a ton Sham!  I included editContext.getEditConfig().setDeepCancel(false); in the topmost component's JSP. It worked perfectly as I wanted. :)