Hey,
I am putting together a plugin in Confluence that adds a menu tab in the Space Admin section.
I have created a web-item that adds the actual menu tab and an xwork-action connected to this web-item, rendering a simple soy template. This works great. But my soy template does not render in the correct section.
I have found some info about how to set the decorators when using Velocity in the same use case but I cannot find out how this should be applied when using Soy.
SpaceAdminMenus.png
I want of course my page to render below my newly created tab (Just like e.g. the "Reorder Pages" tab does)
My (simple) Soy Template looks like
/** * */ {template .mytab} <html> <head> <meta name="decorator" content="atl.admin"> </head> <body> Hello World!!!! </body> </html> {/template}
Any clues how I should decorate the soy template to make this happen?
Thnx in advance
// Svante
Community moderators have prevented the ability to post new answers.
There is no vertical connection between the tabs and the content. All content starts on the far left, regardless of where the tab is actually located. It may seems so for "Reorder Pages" but if you click on the tab "Export", you see, that this is not the case. As for your question, just let the content start on the left, this is the default and I would not deviate from it.
Hey, thnx for your answer. I have noticed this too. The decorators I have found for velocity templates look like #applyDecorator ("root") ## The .vmd to use - This one displays both in Space Admin and Space Tools. #decoratorParam ("context" "spaceadminpanel") ## Key of the web-item to highlight in Space Admin #decoratorParam ("selection" "quick-link-manager-2") ## Key of the web-item to highlight in Space Tools #decoratorParam ("selectedSpaceToolsWebItem" "quick-link-manager") #decoratorParam ("helper" $action.helper) which indicates what you say. You even define what tab to high-light. Do you have any idea how this should be done in a soy template? // Svante
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.