Wiki source code of Default Macro Categories
Last modified by Raphaƫl Jakse on 2024/07/26
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | The following Macro categories are used by default in XWiki. If you're writing a new macro, it's advised to use one of these categories so that your macro gets grouped with other macros in the same category. | ||
2 | |||
3 | * Development | ||
4 | * Navigation | ||
5 | * Content | ||
6 | * Formatting | ||
7 | * Layout | ||
8 | * Deprecated | ||
9 | * Internal | ||
10 | |||
11 | These categories are [[defined as constants>>https://github.com/xwiki/xwiki-rendering/blob/5a91250d1c81f475ef605c11dc4389a9e2843071/xwiki-rendering-transformations/xwiki-rendering-transformation-macro/src/main/java/org/xwiki/rendering/macro/AbstractMacro.java#L51-L85]] in ##org.xwiki.rendering.AbstractMacro##. If you write a macro in Java, it is advised to use there constants. | ||
12 | |||
13 | Note that Category names can be overridden using the following translation keys (this is an example from the default English language): | ||
14 | |||
15 | {{code language="properties"}} | ||
16 | rendering.macroCategory.Development=Development | ||
17 | rendering.macroCategory.Navigation=Navigation | ||
18 | rendering.macroCategory.Content=Content | ||
19 | rendering.macroCategory.Formatting=Formatting | ||
20 | rendering.macroCategory.Layout=Layout | ||
21 | rendering.macroCategory.Deprecated=Deprecated | ||
22 | rendering.macroCategory.Internal=Internal | ||
23 | {{/code}} | ||
24 | |||
25 | See also the documentation [[to hide some categories>>Documentation.AdminGuide.Configuration.WebHome||anchor="HMacroscategoriesandvisibility"]]. |