How to create a new location for a new web section in confluence?

Hi All,

I have added a new tab in the user profile using as web item, I want to know how can i create new sections inside my new tab and what should I include in the location parameter? Can anyone please help me with this?


1 answer

This widget could not be displayed.

You can add new sections but only under the existing pluggable locations. For your new tab, you should be able to do whatever you want programmatically, right? i.e. not using the location parameter.

Thanks Jobin, that is what I was wondering about, so it is clear now that I cannot define a new location for adding new sections in user defined tabs in confluence.



Paul Curren Atlassian Team Jul 11, 2012

Well as Jobin says, you can do what you like in your tab.

If wanted to supportfurther pluggable tabs then in your Velocity template you could do something along the lines of -

<div id="tab-navigation">
   <ul class="tab-navigation">
        #foreach ($item in $webInterfaceManager.getDisplayableItems("my.plugin.point", $action.webInterfaceContext))
        <li #if ($tab == $item.key) class="current tab" #else class="tab" #end>
            <a href="$$req, $action.webInterfaceContext)">$item.label.getDisplayableLabel($req, $action.webInterfaceContext)</a>

However, without understanding your full requirements I couldn't say whether this is a suitable approach for you or not.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published yesterday in Marketplace Apps

The 7 hacks of highly successful automation

...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...

142 views 0 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you