How to get a specific child page on iteration and display in sitemap for first level? | Community
Skip to main content
New Participant
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
  • 1660 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
JeevanRajAccepted solution
New Participant
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

 

New Participant
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?

JeevanRaj
New Participant
April 13, 2022

You can do that using groovy scripts if there is a logic to knowing which pages it has to be enabled. Like, enable this for the first 2 pages on a child page or something like this?