Use a normal properties file and locate it as follows: Public void setI18NBeanFactory(I18NBeanFactory i18NBeanFactory) I18NBean i18nBean = i18NBeanFactory.getI18NBean(locale) In the system.page location, has the following #applyDecorator directive:ĬonfluenceActionSupport action = (ConfluenceActionSupport) helper.getAction() For example, viewpage.vm, which defines the "View" tab The #applyDecorator directive being called from that file. vm file of one of the existing items in that location. If I create a web item that links to my custom action, how do I make it appear in the same tabs/context as the other items in that location? You can, for example, define alternative UI plugin modules that place your functions in Confluence standard locations,īut have a that disables them in favor of your custom locations if your theme is installed. Provide an alternative set of UI modules for people who use other themes and still want to access the same functionality. Once again, we don't recommend this as you end up with plugins that are only useful in your own themes. System.* locations for Confluence core use. Probably use the standard 'inverted domain name' prefix so as not to clash with anyone else's plugins. Pick a new key for the location or section parameters of your plugin modules. $($req, $webInterfaceContext)Ĭan I create new locations for web UI plugins in my own themes? #foreach ($item in $("system.space", $webInterfaceContext)) Here is a sample atlassian-plugin.xml fragment for a web section:Ģ #set ($webInterfaceContext = $action.webInterfaceContext) You may choose to create your own web sections or add to Confluence's predefined ones, if it makes logical sense to do that. We do not recommend this, as it would mean any plugin taking advantage of this would only be compatible with a particular theme. It is possible for themes to make any themeable locations sectioned, even when the default theme does not. ![]() Web items that are not placed under a section will not be displayed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |