Änderungen von Dokument Drawio Macro

Zuletzt geändert von xwikiadmin am 2025/05/21 09:23

Von Version 2.1
bearbeitet von xwikiadmin
am 2023/04/25 11:51
Änderungskommentar: Install extension [com.xwiki.pro:xwiki-pro-macros/1.7.1]
Auf Version 1.1
bearbeitet von xwikiadmin
am 2022/11/23 13:31
Änderungskommentar: Install extension [com.xwiki.pro:xwiki-pro-macros/1.6]

Zusammenfassung

Details

Seiteneigenschaften
Inhalt
... ... @@ -11,7 +11,7 @@
11 11  = Parameters =
12 12  
13 13  |=Parameter|=Description
14 -|**diagramName**|The diagram identifier. It should be the **name of the attachment** storing the Drawio diagram data. The Drawio diagram exports consist in attachments added to the parent page. For example, for a diagram called //MyDrawioDiagram.drawio//, there will be two attachments on the parent page: //MyDrawioDiagram.drawio.png// (the filename with a ".png" extension) representing the preview of the diagram and //MyDrawioDiagram.drawio// representing the diagram data in Diagrams.net's native format.
14 +|**diagramName**|The diagram identifier. It should be the **name of the attachment** storing the Drawio diagram data. (% style="color: red"%)It should have a `.drawio` filename extension(%%). The Drawio diagram exports consist in attachments added to the parent page. For example, for a diagram called //MyDrawioDiagram.drawio//, there will be two attachments on the parent page: //MyDrawioDiagram.drawio.png// (the filename with a ".png" extension) representing the preview of the diagram and //MyDrawioDiagram.drawio// representing the diagram data in Diagrams.net's native format.
15 15  
16 16  {{info}}
17 17  Besides the **diagramName** parameter, the ~{~{drawio}} macro used in Confluence has other parameters that don't have to be cleaned, because these parameters are being ignored by this bridge macro.
XWiki.WikiMacroClass[0]
Makro-Code
... ... @@ -1,16 +1,5 @@
1 1  {{include reference="Confluence.Macros.DiagramMacros" /}}
2 2  
3 -{{include reference="Licenses.Code.VelocityMacros"/}}
4 -
5 5  {{velocity}}
6 -## We need to check if there is a valid license because the macro is registered even if the user doesn't have view right
7 -## on the macro definition page. See XWIKI-14828: Rendering macros defined in wiki pages are available to users that
8 -## don't have view right on those pages.
9 -#if ($services.licensing.licensor.hasLicensureForEntity($xcontext.macro.doc.documentReference))
10 - #displayConfluenceDiagram()
11 -#else
12 - {{error}}
13 - #getMissingLicenseMessage('proMacros.extension.name')
14 - {{/error}}
15 -#end
4 +#displayConfluenceDiagram()
16 16  {{/velocity}}