Join the community to find out what other Atlassian users are discussing, debating and creating.
I have a macro I'm writing that would be improved by a conditional that will execute code based on whether a page has children. Does anybody know how to do this?
If you have a page object you can call:
#if($page.hasChildren()) ## do some magic #end
See the page API documentation for more information.
Hope this helps
I see that you can use .hasChildren but $page.hasChildren() did nothing. After some poking around, I found that $content.hasChildren() works just fine.
Thanks Remo!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hindsight might be 2020 but looking back, a lot of cool new features rolled out in 2019. From new collaboration and organizational powers to fresh templates and handy integrations, it’s been quite th...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.