It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

Suraiya Banu Jul 09, 2012

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?

Regards

1 answer

0 votes
Jobin Kuruvilla [Go2Group] Community Leader Jul 09, 2012

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.

Suraiya Banu Jul 10, 2012

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.

Cheers

Suraiya

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="$item.link.getDisplayableUrl($req, $action.webInterfaceContext)">$item.label.getDisplayableLabel($req, $action.webInterfaceContext)</a>
        </li>
        #end
    </ul>
</div>

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Marketplace Apps & Integrations

scaling agile at the enterprise level with Valiantys

Hey there Community! My name is Vannya Vallejo, the Channel Communication Specialist at Atlassian and I want to help Atlassian users like you learn about our Solution Partners and how they can help ...

436 views 1 12
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you