What is the Page PlaceID for a Tab on the main Tabs?
How or can I define a custom tab to exist at the level of Projects/My Changes/Agents/Build Queue?
Nothing listed in JavaDoc appears to be the Tab section I'm looking for.
-Scott
Please sign in to leave a comment.
There is no such place id, but you can do the following:
- register your plugin to all pages header page place (PlaceId.ALL_PAGES_HEADER)
- add the following code to your JSP:
<script type="text/javascript">
Behaviour.addLoadEvent(function() {
topNavPane.addTab("<tab id>", {
caption: "<tab title>",
url: "<tab url>"
});
})
</script>
Excellent
Created a redirect.jsp
And setup everything I needed on the index.jsp.
I'll setup a controller soon to do more complex stuff, intend to make a very compact dashboard that managers want, but the primary thing was having a highly visible place to get more help about team city (image based tutorials, and policies on usage).
Created the following SimplePageExtension, and added it to build-server-plugin.xml as a bean.
Since ALL_PAGES_HEADER is a simple place id (not a place for custom tab) you can simplify your code by removing CustomTab interface implementation.