Modifications pour le document Confluence bridge for HtmlComment
Modifié par superadmin le 21/07/2025 - 08:59
Depuis 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]
À 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]
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 e-in-source-code**|Define if the comment should be rendered in the output HTML or not.|No|false6 +|**hidden**|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 -{{htmlcomment}} 11 +{{confluence_htmlcomment}} 12 12 it s a comment 13 -{{/htmlcomment}} 13 +{{/confluence_htmlcomment}} 14 14 {{/code}} 15 15 16 16 Result HTML:
- XWiki.WikiMacroClass[0]
-
- Code de la macro
-
... ... @@ -1,10 +1,12 @@ 1 1 {{velocity output="false"}} 2 2 #macro (executeMacro) 3 - {{html clean="false"}} 4 - #if ("$!wikimacro.parameters.get('hide-in-source-code')" == 'false') 5 - <!-- $escapetool.xml($wikimacro.content) --> 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 6 6 #end 7 - {{/html}} 8 8 #end 9 9 {{/velocity}} 10 10 ... ... @@ -12,7 +12,7 @@ 12 12 ## We need to check if there is a valid license because the macro is registered even if the user doesn't have view right 13 13 ## on the macro definition page. See XWIKI-14828: Rendering macros defined in wiki pages are available to users that 14 14 ## don't have view right on those pages. 15 -#if ($services. promacrolicensing.hasLicensureForEntity($xcontext.macro.doc.documentReference))17 +#if ($services.licensing.licensor.hasLicensureForEntity($xcontext.macro.doc.documentReference)) 16 16 #executeMacro## 17 17 #else 18 18 {{missingLicenseMessage extensionName="proMacros.extension.name"/}} - Identifiant de la macro
-
... ... @@ -1,1 +1,1 @@ 1 -htmlcomment 1 +confluence_htmlcomment
- XWiki.WikiMacroParameterClass[0]
-
- Nom du paramètre
-
... ... @@ -1,1 +1,1 @@ 1 -hid e-in-source-code1 +hidden