Modifications pour le document Confluence bridge for Content by label
Modifié par superadmin le 21/07/2025 - 08:55
Depuis la version 2.1
modifié par Admin
sur 20/08/2024 - 13:51
sur 20/08/2024 - 13:51
Commentaire de modification :
Install extension [com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui/1.21.0]
À la version 6.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 (1 modifications, 0 ajouts, 0 suppressions)
Détails
- Propriétés de la Page
-
- Auteur du document
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki.admin 1 +XWiki.superadmin
- XWiki.WikiMacroClass[0]
-
- Code de la macro
-
... ... @@ -2,15 +2,6 @@ 2 2 3 3 {{velocity output=false}} 4 4 5 -## See https://solr.apache.org/guide/solr/latest/query-guide/standard-query-parser.html#escaping-special-characters 6 -## And https://jira.xwiki.org/browse/XCOMMONS-2926 7 -#set ($solrSpecialChars = ['+', '-', '&&', '||', '!', '(', ')', '{', '}', '[', ']', '^', '"', '~', '*', '?', ':', '/', '\', ' ']) 8 -#set ($escapedSolrSpecialChars = ['\+', '\-', '\&&', '\||', '\!', '\(', '\)', '\{', '\}', '\[', '\]', '\^', '\"', '\~', '\*', '\?', '\:', '\/', '\\', '\ ']) 9 - 10 -#macro (escapeSolr $v) 11 -$stringtool.replaceEach($v, $solrSpecialChars, $escapedSolrSpecialChars)## 12 -#end 13 - 14 14 #macro (contentbylabellink $d) 15 15 <a href="$escapetool.xml($d.getURL('view'))">## 16 16 $escapetool.xml($d.getDisplayTitle())## ... ... @@ -17,14 +17,6 @@ 17 17 </a>## 18 18 #end 19 19 20 -#macro (getSpaceFacet $space) 21 -#set ($facetNumber = $space.getReversedReferenceChain().size() - 1) 22 -#if ($space.getRoot().getType().toString() == "WIKI")) 23 -#set ($facetNumber = $facetNumber - 1) 24 -#escapeSolr("$facetNumber/${serializer.serialize($space)}.")## 25 -#end 26 -#end 27 - 28 28 #macro (executeMacro) 29 29 #if ("$!xcontext.macro.params.title" != "") 30 30 **$services.rendering.escape($xcontext.macro.params.title, $xwiki.currentContentSyntaxId)** ... ... @@ -43,7 +43,7 @@ 43 43 <li> 44 44 <div class="xitemcontainer"> 45 45 $services.icon.renderHTML('page') 46 - #set ($d = $xwiki.getDocument($r.fullname)) 29 + #set ($d = $xwiki.getDocument("$r.wiki:$r.fullname")) 47 47 #contentbylabellink($d) 48 48 #if ($xcontext.macro.params.showSpace != "false") 49 49 #set ($confluenceSpace = $services.confluence.spaces.getConfluenceSpace($d)) ... ... @@ -76,7 +76,7 @@ 76 76 ## We need to check if there is a valid license because the macro is registered even if the user doesn't have view right 77 77 ## on the macro definition page. See XWIKI-14828: Rendering macros defined in wiki pages are available to users that 78 78 ## don't have view right on those pages. 79 -#if ($services. promacrolicensing.hasLicensureForEntity($xcontext.macro.doc.documentReference))62 +#if ($services.licensing.licensor.hasLicensureForEntity($xcontext.macro.doc.documentReference)) 80 80 #executeMacro 81 81 #else 82 82 {{missingLicenseMessage extensionName="proMacros.extension.name"/}}