Hiding a section if there are no children to a page

Graham Foster September 9, 2019

I have a macro to display all children of a page as a list of links.

I'd like NOT to display that list of links (or its title) if there are no children to the current page.

I thought the "show-if" macro and the "scope" parameter would do this, but I can't make it work.

What should I be using, or what is the correct syntax please?

1 answer

0 votes
TJ Cardenas September 9, 2019

@Graham Foster Confluence does not seem to have information on setting the Scope parameter for the ShowIf Macro.

There is a related question here: https://community.atlassian.com/t5/Confluence-questions/Incoming-Links-macro-how-to-set-the-scope-parameter/qaq-p/297196

Graham Foster September 10, 2019

Thx - seems that the scope parameter isn't properly documented.

I'm not even sure if this is the way to solve my problem - which is how to hide a section if the current page has no children.

Matt Reiner _K15t_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
September 10, 2019

What is your use case for wanting to hide the page?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events