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
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.
Cheers
Suraiya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.