0 Votes

Changes for page SubmitIncidentMacro

Last modified by Ryan C on 2025/06/08 05:22

From version 1.1
edited by Ryan C
on 2025/06/08 03:01
Change comment: There is no comment for this version
To version 1.2
edited by Ryan C
on 2025/06/08 03:03
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -5,16 +5,17 @@
5 5   #set($url = $request.getParameter("url"))
6 6   #set($desc = $request.getParameter("description"))
7 7  
8 - #set($block = "
9 -(% style=\"margin-bottom:20px; width:100%\" %)
10 -|[[image:PLACEHOLDER.jpg||alt=\"image\" data-xwiki-image-style=\"thumbnail-clickable\" style=\"border:1px solid #cccccc\" width=\"200\"]]|
8 +#set($block = '''
9 +(% style="margin-bottom:20px; width:100%" %)
10 +|[[image:PLACEHOLDER.jpg||alt="image" data-xwiki-image-style="thumbnail-clickable" style="border:1px solid #cccccc" width="200"]]|
11 11  
12 12  === [[${headline}>>${url}]] ===
13 13  
14 14  ${desc}
15 15  [[Read More>>${url}]]
16 -")
16 +''')
17 17  
18 +
18 18   #set($doc = $xwiki.getDocument($doc.fullName))
19 19   #set($content = $doc.getContent())
20 20   $doc.setContent("${content}\n\n${block}")

XWiki AI Chat