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:
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?
.png)








Comments (6)
Mar 30, 2010
Alain Moran says:
Use the import macro not the include macro ... they are similar but subtly diffe...Use the import macro not the include macro ... they are similar but subtly different
Mar 30, 2010
Sterling Heibeck says:
The problem is, I'm doing an #includePage($helper.spaceKey "LeftSideBar") inside...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.
Mar 30, 2010
Alain Moran says:
The fact that you are using a 'Custom Page Layout' suggests you are not using bu...The fact that you are using a 'Custom Page Layout' suggests you are not using builder, is this correct?
Mar 30, 2010
Sterling Heibeck says:
Correct, no builder, I'm just using the macros inside a few pages. Our layout n...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.
Mar 31, 2010
Alain Moran says:
The 'easy way' is to use Builder Seriously ... a lot of work has gone into mak...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.
Mar 31, 2010
Sterling Heibeck says:
Yeah, so I've learned. Thanks for the help Alain.Yeah, so I've learned. Thanks for the help Alain.