<
From version < 93.2 >
edited by Vincent Massol
on 2017/09/01
To version < 93.3 >
edited by Vincent Massol
on 2017/09/01
>
Change comment: Updated the relative links.

Summary

Details

Page properties
Content
... ... @@ -22,7 +22,7 @@
22 22  
23 23  == Using protected API in wiki macros ==
24 24  
25 -Also, if the macro needs to use [[protected API>>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.
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.
26 26  
27 27  = Hello Macro =
28 28  
... ... @@ -70,7 +70,7 @@
70 70  {{velocity}}$xcontext.macro.content{{/velocity}}
71 71  {{/code}}
72 72  
73 -For more details, see the [[Scripting Tips section below>>||anchor="HScriptingTips"]].
73 +For more details, see the [[Scripting Tips section below>>platform:DevGuide.WikiMacroTutorial||anchor="HScriptingTips"]].
74 74  
75 75  == Parameters ==
76 76  
... ... @@ -100,7 +100,7 @@
100 100  
101 101  
102 102  
103 -When your macro is ready, you might want to provide the description of the macro and its parameters in different languages. For that, you need to create a set of translation keys and values (as described [[here>>DevGuide.InternationalizingApplications]]) and then just use the following convention for the keys you add in this storage (no modification is needed on the macro itself, the association of the translations to the macro is done based on a convention of the form of the translation keys):
103 +When your macro is ready, you might want to provide the description of the macro and its parameters in different languages. For that, you need to create a set of translation keys and values (as described [[here>>platform:DevGuide.InternationalizingApplications]]) and then just use the following convention for the keys you add in this storage (no modification is needed on the macro itself, the association of the translations to the macro is done based on a convention of the form of the translation keys):
104 104  
105 105  {{code}}
106 106  rendering.macro.<macro id>.name=Name of the macro, displayed in the macros list in the macros wizard

Get Connected