0 Votes

Changes for page AutoGallery

Last modified by Ryan C on 2025/06/17 16:30

From version 3.3
edited by Ryan C
on 2025/06/17 16:11
Change comment: There is no comment for this version
To version 3.2
edited by Ryan C
on 2025/06/17 16:10
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -16,11 +16,10 @@
16 16   }
17 17   html << "</div>"
18 18  
19 - def rendered = services.rendering.parse(html.toString(), "xwiki/2.1")
20 - wikimacro.result = rendered?.children ?: []
19 + def rendered = services.rendering.parse(html.toString(), xcontext.syntax)
20 + wikimacro.result = rendered.children
21 21  } else {
22 - def fallback = services.rendering.parse("<em>No images found.</em>", "xwiki/2.1")
23 - wikimacro.result = fallback?.children ?: []
22 + wikimacro.result = services.rendering.parse("<em>No images found.</em>", xcontext.syntax).children
24 24  }
25 25  {{/groovy}}
26 26