Änderungen von Dokument Excerpt Macro

Zuletzt geändert von xwikiadmin am 2025/01/07 12:27

Von Version 6.1
bearbeitet von xwikiadmin
am 2025/01/07 12:27
Änderungskommentar: Install extension [com.xwiki.pro:xwiki-pro-macros-ui/1.25.4]
Auf Version 5.1
bearbeitet von xwikiadmin
am 2024/06/24 15:04
Änderungskommentar: Install extension [com.xwiki.pro:xwiki-pro-macros-ui/1.19.4]

Zusammenfassung

Details

Seiteneigenschaften
Inhalt
... ... @@ -1,11 +1,11 @@
1 1  = Description =
2 2  
3 -The Excerpt macro is a bridge between Confluence and XWiki. It allows the user to mark part of the page's content for use by other macros, for instance {{code language="none"}}{{excerpt-include}}{{/code}}.
3 +The Excerpt macro is a bridge between Confluence and XWiki. It allows the user to mark part of the page's content for use by other macros, for exemple {excerpt-include}}.
4 4  
5 5  = Parameters =
6 6  
7 7  |=Parameter|=Description|=Default
8 -|**atlassian-macro-output-type**|The ouput type. It can be either BLOCK or INLINE. Here for historical reasons and won't be shown in the macro editor.|INLINE
8 +|**atlassian-macro-output-type**|The ouput type. It can be either BLOCK or INLINE.|INLINE
9 9  |**hidden**|If true, the content of the macro will be hidden.|false
10 10  |**name**|The name of the excerpt, for named includes.|false
11 11  |**allowUnprivilegedInclude**|Allow this excerpt to be seen even for people who don't have view rights on this page when included|false
XWiki.WikiMacroClass[0]
Makro-Code
... ... @@ -1,4 +1,4 @@
1 -{{velocity}}
1 +{{velocity output="false"}}
2 2  #macro (executeMacro)
3 3   #set($hidden = $wikimacro.parameters.get('hidden'))
4 4   #if("$!hidden" != 'true')
... ... @@ -11,11 +11,14 @@
11 11   #else{{wikimacrocontent /}}#end##
12 12   #end##
13 13  #end
14 +{{/velocity}}
15 +
16 +{{velocity}}
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 17  #if ($services.promacrolicensing.hasLicensureForEntity($xcontext.macro.doc.documentReference))
18 -#executeMacro##
21 + #executeMacro##
19 19  #else
20 20   {{missingLicenseMessage extensionName="proMacros.extension.name"/}}
21 21  #end
Makrobeschreibung
... ... @@ -1,1 +1,1 @@
1 -Excerpt macro. It marks part of the page's content for use by other macros. It is compatible with the Confluence Excerpt macro.
1 +Bridge for the Confluence Excerpt macro. It marks part of the page's content for use by other macros.