Changes for page Card Navigation

Last modified by Calvin Henderson on 2025/03/11 10:29

From version 14.22
edited by calvin_henderson
on 2024/12/18 13:00
Change comment: There is no comment for this version
To version 14.33
edited by calvin_henderson
on 2024/12/18 13:12
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
code
... ... @@ -1,10 +1,12 @@
1 1  {{velocity}}
2 2  #set($wikiRef = $doc.documentReference.getWikiReference().getName())
3 3  #set($docRef = $doc.getFullName())
4 -#set($entries = $doc.getObject('XWiki.WikiMacroClass').content)
5 -$doc.getObject('XWiki.WikiMacroClass').getProperty('content')
6 6  
7 -#if("$xcontext.action" != "edit")
5 +#if("$xcontext.action" == "edit")
6 +|Icon Name|Title|Wiki link or URL|
7 +#set($wikimacro.content = "|Icon Name|Title|Wiki link or URL|\n" + $wikimacro.content)
8 +#else
9 + #set($entries = $wikimacro.content)
8 8   {{html wiki="true"}}
9 9   <div style="display: grid;
10 10   grid-template-columns: 1fr 1fr 1fr;