Child pages not displaying correctly in Children Display macro
Asked by Alan Vickers:

We are having issues with child pages that are displayed on parent pages in the Children Display macro. Regardless of the number of child pages, only the first four are displayed. We are using the default settings (we are not setting any limits).   

![ChildPages.png](https://community.atlassian.com/t5/image/serverpage/image-id/208658i55F69BA5FBC34654/image-size/large?v=v2&px=999 "ChildPages.png")


Answers:
author: Bill Bailey
body: [@Alan Vickers](/t5/user/viewprofilepage/user-id/1263919) A few things to test out/debug:

* Try setting a Number of Children to see if you can make more appear?
* If that does nothing, try changing the sort order to see if the list changes?
* Check the page to make sure the macro is not inside some other macro (or pasted HTML) that might limit the display.

comments: author: Alan Vickers
body: Thanks [@Bill Bailey](/t5/user/viewprofilepage/user-id/502089) . We have tried all the above with no luck.


author: Nicolai Sibler
body: Hi [@Alan Vickers](/t5/user/viewprofilepage/user-id/1263919) ,

does *everybody* see 4 children only on the parent page's macro output?

I'm asking because of a specific phenomenon:

As a Confluence Administrator, you'll see the complete page tree in the sidebar in any case. But on the page, you'll only see the macro output as a user. So if there are page restrictions on the pages 5-x and you *as a user* are not added to these restrictions, the macro will show you those 4 pages only. The users added to the page restrictions will have a different count of pages they see on the parent page.

Kind regards,

Nicolai

comments: author: Alan Vickers
body: Thanks [@Nicolai Sibler](/t5/user/viewprofilepage/user-id/2649119). Everyone sees 4 children only, and it is present in all wikis spaces (we have over 100).


author: Nicolai Sibler
body: I think this is worth raising a support ticket at Atlassian.

From my experience, I suspect that the support team will first require some further testing to isolate the cause of the problem.

This includes

* Rebuilding the index from scratch
* Running in safe mode (without 3rd party apps)
* Without customizations (Custom HTML etc)


author: Alan Vickers
body: Thanks [@Nicolai Sibler](/t5/user/viewprofilepage/user-id/2649119)

Good info. Our IT team submitted a ticket. Again, appreciate the help!


author: Nicolai Sibler
body: You're welcome. Kindly inform us about the solution here.


author: Solomon Putla
body: [@Alan Vickers](/t5/user/viewprofilepage/user-id/1263919) In which version is this issue seen?

We were on 7.19.2 and upgraded to 7.19.12. After upgrade, we started seeing this issue. Any feedback from vendor? Please share.


author: Alan Vickers
body: Hi [@Solomon Putla](/t5/user/viewprofilepage/user-id/4229672) This was a response from the Confluence team that ultimately resolved our issue:  

Thank you for updating us! In this case, I was checking data from your support zip file and I found this:

\<confluence.child-macro.max-depth\>4\</confluence.child-macro.max-depth\>

\<confluence.child-macro.page-limit\>4\</confluence.child-macro.page-limit\>

Dconfluence.child-macro.page-limit=4 exit abort -Xms7000m -Xmx12000m\</virtual-machine-arguments\>

\[flag.png\]Maybe in the past this configuration has been made by an admin and was not documented for future reference:

JVM option below on a personal lab to limit the number of children shown by the macro, and it worked fine for me (set to 4, on this example):

CATALINA_OPTS="-Dconfluence.child-macro.page-limit=4 ${CATALINA_OPTS}"

Just so you have at hand, you can also set a maximum number for 'Depth of Descendants':

CATALINA_OPTS="-Dconfluence.child-macro.max-depth=4 ${CATALINA_OPTS}"

* Configuring System Properties\<[https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fconfluence.atlassian.com%2Fdoc%2Fconfiguring-system-properties-168002854.html\&data=05%7C01%7Cjason.hrincevich%40cognizant.com%7Cad98d4f0850749dadd6e08dab214a03a%7Cde08c40719b9427d9fe8edf254300ca7%7C0%7C0%7C638018098976584987%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C\&sdata=M3o7TbexcIwCd4NmIheUVPQziSZPwKIqnX978CuDYlM%3D\&reserved=0](https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fconfluence.atlassian.com%2Fdoc%2Fconfiguring-system-properties-168002854.html&data=05%7C01%7Calan.vickers%40cognizant.com%7C9a8f1400d12e4c35607208dab226a2a5%7Cde08c40719b9427d9fe8edf254300ca7%7C0%7C0%7C638018176271785559%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2ByxIwHoFsUxNEJ2510gBRUpkpjgYnCCsGuV9yCn5WrY%3D&reserved=0)\>


author: Fabio Racobaldo _Herzum_
body: Hi [@Alan Vickers](/t5/user/viewprofilepage/user-id/1263919) ,

probably you set Number of Children on your macro. Remove that entry on macro configuration. It should solve your issue.

Fabio

comments: author: Alan Vickers
body: Thanks Fabio. This is set to blank.


author: Florian Bonniec
body: Hi

Can you share how you configured the macro ?

There is a Number Of Children Parameter that should be empty or may be set to 4 in your case.

comments: author: Alan Vickers
body: Hi Florian. Thanks for the quick response. We are leaving the default settings:

![ChildPageConfig.png](https://community.atlassian.com/t5/image/serverpage/image-id/208668iFC1B97A22810A976/image-size/large?v=v2&px=999 "ChildPageConfig.png")


author: Florian Bonniec
body: [@Alan Vickers](/t5/user/viewprofilepage/user-id/1263919) Have a look to [@Bill Bailey](/t5/user/viewprofilepage/user-id/502089) recommendations.

It may be related to ancestor table also even if I think that it would have not display the pages on the right also.

<https://confluence.atlassian.com/doc/rebuilding-the-ancestor-table-153948.html>


author: Alan Vickers
body: Thanks Florian! I'll take a look.


Tags: confluence-server

server