Changes for page Writing XWiki Rendering Macros in wiki pages
Last modified by Simon Urli on 2023/10/10
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -10,16 +10,10 @@ 10 10 11 11 There are 3 levels of visibility for a macro: 12 12 13 -* ##Global##, meaning that the macro will be available in all the pages of all the (sub)wikis 14 -* ##Current Wiki##, which means that the macro will be available in all the pages of the wiki the macro is in 15 -* ##Current User##, which means that the macro will only be available to the user who is its author 13 +* ##Global##, meaning that the macro will be available in all the pages of all the (sub)wikis. Requires the macro author to have **Programming Rights** 14 +* ##Current Wiki##, which means that the macro will be available in all the pages of the wiki the macro is in. Requires the macro author to have **Admin Rights** 15 +* ##Current User##, which means that the macro will only be available to the user who is its author. No special rights required. 16 16 17 -The rights required to create macros are different depending on the visibility we want for our macro: 18 - 19 -* the macro author needs to have **programming** rights for a macro available in the whole **farm** 20 -* the macro author needs to have **admin** rights for a macro available in its **wiki** 21 -* no special rights besides the obvious right to edit the page are needed for a macro available only to its author. 22 - 23 23 == Using protected API in wiki macros == 24 24 25 25 Also, if the macro needs to use [[protected API>>platform:DevGuide.Scripting||anchor="HXWikiCoreAccess"]], the author of the macro will need to have programming rights. Note that the macro will always be executed with the rights of its author, and not with the rights of the author of the calling document (the document using the macro). Specifically, if the macro uses protected API, only the macro author needs to have programming rights, not all the authors of the documents that call this macro.