How to get a specific child page on iteration and display in sitemap for first level? | Community
Skip to main content
Level 4
April 13, 2022
Solved

How to get a specific child page on iteration and display in sitemap for first level?

  • April 13, 2022
  • 1 reply
  • 1661 views

Hi,

 

I'm trying to display only a specific page which is under child[0] for a specific set of pages. The pages iterated through other pages will remain the same.

Eg :A

           a

           b

           c

    B

           d

           e

            f

C

           g

            h

             i

This is what the footer looks like currently.

A                       B                               C

a                        d                                  g

b                        e                                    h

c                         f                                     i

 

I want it to be displayed as below for certain pages

 

A                                 B                              C

b                                    d                            g

                                     e                              h

                                       f                               i

Thanks

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 JeevanRaj

Hi @chinmayish 

 

There is a page property called "Hide in Navigation" which is used for this purpose. You can enable this option for pages a and c. When you are constructing the sitemap you can choose to ignore the pages with "hide in navigation" enabled.

 

Regards

Jeevan

 

1 reply

JeevanRaj
Community Advisor
JeevanRajCommunity AdvisorAccepted solution
Community Advisor
April 13, 2022

Hi @chinmayish 

 

There is a page property called "Hide in Navigation" which is used for this purpose. You can enable this option for pages a and c. When you are constructing the sitemap you can choose to ignore the pages with "hide in navigation" enabled.

 

Regards

Jeevan

 

Level 4
April 13, 2022

Thank you very much @jeevanraj .

I want to enable in multiple set of pages, more than a 100. Is there a programmatic way to do it?

Level 4
April 13, 2022

Thank you @jeevanraj 


Hi @jeevanraj ,

 

Can we roll out pages using groovy script?

Thanks