For the page tree macro, the root page is specified but only the child pages below it are displayed in the tree.
Is there a way to modify the macro such that the root page is displayed (as level 1) in the tree? I'm not a programmer, so some tips on where to get a copy of the macro and modify it to show the root page would be super-helpful.
Thanks,
Shireen
Here is some macro code that might help to get you started with your own Java macro: https://bitbucket.org/atlassian/confluence-advanced-macros-plugin/src/master/
Note that the source is quite old and probably not the code of the current macro.
A second option (on Confluence Server) are user macros: Did not try it by myself, but at https://community.atlassian.com/t5/Answers-Developer-Questions/Creating-a-Custom-Page-Tree-macro/qaq-p/469709 there is a user macro that might help to get you started?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shireen,
I'm not sure of an easy way to modify the macro to change what root page is displayed.
If you're using the macro in a limited set of cases, a workaround could be to create a 'dummy' parent page within your page tree. You could create a parent page for your root page, and select it as your root page in the macro. This would then display your actual root page as the level 1 in your tree.
Best,
Lauren
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, Lauren. That's what we're doing for now. I was hoping there was a more elegant solution. :)
cheers,
Shireen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.