Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to decorate a Space Admin menu page in a Soy Template

Svante Gustafsson Björkegren
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 26, 2015

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

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Tim
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 27, 2015

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.

Svante Gustafsson Björkegren
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 27, 2015

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

TAGS
AUG Leaders

Atlassian Community Events