Hide Child Pages | Community
Skip to main content
New Participant
August 3, 2022
Solved

Hide Child Pages

  • August 3, 2022
  • 3 replies
  • 1286 views

 Please guide me one this use case.

 

I have created  check box as ' Hide Child Pages' under basic tab under page properties .

If this check box was enabled  in at page level  , if page have child pages and those child pages should be hide in navigation  if check box was enabled.

 

Please guide me.

 

Regards

MADHU

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

3 replies

arunpatidar
arunpatidarAccepted solution
New Participant
August 4, 2022
madhu61Author
New Participant
August 4, 2022

Hi,

 

Thanks to all. I am checking .

New Participant
August 4, 2022

Hi @madhu61 ,

It would be helpful if you could elaborate your usecase. Assuming you have a component similar to Navigation where if a page has hide in navigation checkbox enabled, It should hide that page and all the child pages from the Navigation component. In that case please follow the below steps

  1. As you have created the custom checkbox
  2. Go the Navigation component -> Identify the Java logic which implements this list of pages
  3. Add the condition to fetch the page and its child pages only if your property is NOT present on that  page (/jcr:content)
  4. Please try exploring the Navigation component present in the core components which has similar implementation
Employee
August 3, 2022

Are you trying to use the hide condition for your page property ?

 

https://experienceleague.adobe.com/docs/experience-manager-65/developing/components/hide-conditions.html