Modifications pour le document Confluence bridge for HtmlComment
Modifié par superadmin le 21/07/2025 - 08:59
Depuis la version 3.1
modifié par superadmin
sur 25/05/2025 - 00:00
sur 25/05/2025 - 00:00
Commentaire de modification :
Install extension [com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui/1.26.20]
À la version 1.1
modifié par superadmin
sur 13/10/2024 - 00:00
sur 13/10/2024 - 00:00
Commentaire de modification :
Install extension [com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui/1.23.0]
Résumé
-
Propriétés de la Page (1 modifications, 0 ajouts, 0 suppressions)
-
Objets (2 modifications, 0 ajouts, 0 suppressions)
Détails
- Propriétés de la Page
-
- Contenu
-
... ... @@ -3,14 +3,14 @@ 3 3 = Parameters = 4 4 5 5 |=Parameter|=Description|=Required|=Default 6 -|**hid den**|Define if the comment should be rendered in the output HTML or not.|No|false6 +|**hide-in-source-code**|Define if the comment should be rendered in the output HTML or not.|No|false 7 7 8 8 = Example Usage = 9 9 10 10 {{code}} 11 -{{ confluence_htmlcomment}}11 +{{htmlcomment}} 12 12 it s a comment 13 -{{/ confluence_htmlcomment}}13 +{{/htmlcomment}} 14 14 {{/code}} 15 15 16 16 Result HTML:
- XWiki.WikiMacroClass[0]
-
- Code de la macro
-
... ... @@ -1,12 +1,10 @@ 1 1 {{velocity output="false"}} 2 2 #macro (executeMacro) 3 - #if("$xcontext.action" == "edit") 4 - {{wikimacrocontent/}} 5 - #else 6 - #if ("$!wikimacro.parameters.get('hidden')" == 'false') 7 - {{html clean="false"}}<!-- {{/html}}$escapetool.xml($wikimacro.content){{html clean="false"}} -->{{/html}} 8 - #end 3 + {{html clean="false"}} 4 + #if ("$!wikimacro.parameters.get('hide-in-source-code')" == 'false') 5 + <!-- $escapetool.xml($wikimacro.content) --> 9 9 #end 7 + {{/html}} 10 10 #end 11 11 {{/velocity}} 12 12 ... ... @@ -14,7 +14,7 @@ 14 14 ## We need to check if there is a valid license because the macro is registered even if the user doesn't have view right 15 15 ## on the macro definition page. See XWIKI-14828: Rendering macros defined in wiki pages are available to users that 16 16 ## don't have view right on those pages. 17 -#if ($services.licensing. licensor.hasLicensureForEntity($xcontext.macro.doc.documentReference))15 +#if ($services.promacrolicensing.hasLicensureForEntity($xcontext.macro.doc.documentReference)) 18 18 #executeMacro## 19 19 #else 20 20 {{missingLicenseMessage extensionName="proMacros.extension.name"/}} - Identifiant de la macro
-
... ... @@ -1,1 +1,1 @@ 1 - confluence_htmlcomment1 +htmlcomment
- XWiki.WikiMacroParameterClass[0]
-
- Nom du paramètre
-
... ... @@ -1,1 +1,1 @@ 1 -hid den1 +hide-in-source-code