[All Adaptavist Apps]
I've modified the default confluence Page Layout to include a side menu that includes a wiki page; inside this page are my menu items. In the menu I've included a few custom links and the normal edit/add page menus:
Policy Actions
Add
Tools
so, what I have is:
menu items (left page) |
actual wiki page |
Here's the problem however. Whenever I click a menu item that uses a parentId, for example, Copy this page, it wants to make a copy of the "menu page" insead of the "actual wiki page". How can I specify that the context for my menu action should use the "actual wiki page" as the parent instead of the menu page?
6 Comments
Unknown User (amoran)
Use the import macro not the include macro ... they are similar but subtly different
Unknown User (sterling.heibeck@spectrum-health.org)
The problem is, I'm doing an #includePage($helper.spaceKey "LeftSideBar") inside a custom Page Layout. So, it's not a wiki include, but a decorator include.
Unknown User (amoran)
The fact that you are using a 'Custom Page Layout' suggests you are not using builder, is this correct?
Unknown User (sterling.heibeck@spectrum-health.org)
Correct, no builder, I'm just using the
macros inside a few pages. Our layout needs to be very specific to match an existing website and I found with custom CSS and few tweaks to the default theme I was easily able to duplicate the look of the other site.
I did find a way to custom link each menu item and pull the pageId, but I was hoping for an easy way to just drop in the pre-made menu items without having to hand-code each item. Might not be possible, but, I was just curious.
Unknown User (amoran)
The 'easy way' is to use Builder
Seriously ... a lot of work has gone into making this kind of thing trivial with builder, but as you have seen it's not simple to achieve in the world of decorators.
Unknown User (sterling.heibeck@spectrum-health.org)
Yeah, so I've learned. Thanks for the help Alain.