|
[
Permlink
| « Hide
]
Shannon Krebs added a comment - 12/Mar/08 06:44 PM
I was playing with a 2.8 milestone this morning, as part of this fix I think we should make the bookmark menu item enabled by default since 2.8 now has drop down menus.
Shannon: agreed. This would be a good time to enable the menu item by default.
New web item has been added, along with a new condition to check the Confluence build number, I'm not sure how to get the menu item in the the 'space' section of the menu though, according to the doco the "system.page.action" location does not have any sections.
Did you find the correct section, Shannon? As an example, the 'News' menu item can be found in plugins/content-add-sections.xml in WEB-INF/lib/confluence-2.8-m9-r2.jar, and looks like this:
<web-item key="add-news" name="Create News" section="system.content.add/space" weight="20"> <label key="news.word" /> <link linkId="createNewsLink">/pages/createblogpost.action?spaceKey=$generalUtil.urlEncode($helper.spaceKey)</link> <condition class="com.atlassian.confluence.plugin.descriptor.web.conditions.CreateContentCondition"> <param name="content">news</param> </condition> <styleClass>add-news</styleClass> </web-item> No I didn't get that to work, I'm sure I tried space as the section but that was an earlier milestone, will try again with m9
I didn't even notice in the example above that there is a whole new location key, adding the web item to this location works fine.
The plugin dev guide needs to be updated... Thanks, the plugin guide has been updated:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||