Changes for page Card Navigation

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

From version 14.12
edited by calvin_henderson
on 2024/12/18 12:54
Change comment: There is no comment for this version
To version 14.49
edited by calvin_henderson
on 2024/12/18 13:22
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
code
... ... @@ -1,17 +1,25 @@
1 1  {{velocity}}
2 2  #set($wikiRef = $doc.documentReference.getWikiReference().getName())
3 3  #set($docRef = $doc.getFullName())
4 -#set($entries = $doc.getObject('XWiki.WikiMacroClass').getProperty('content').value)
5 -$entries.toString()
6 -
4 +#set($entries = $wikimacro.content)
7 7  #if("$xcontext.action" != "edit")
8 - {{html wiki="true"}}
9 - <div style="display: grid;
10 - grid-template-columns: 1fr 1fr 1fr;
11 - gap: 10px;
12 - ">
6 +
7 +
8 +$entries
9 +
10 +
11 +
12 +{{html wiki="true"}}
13 +#if (false)
14 + <div style="display: grid;
15 + grid-template-columns: 1fr 1fr 1fr;
16 + gap: 10px;
17 + ">
18 +#end
19 +
13 13  #foreach($entry in $entries.split('\n'))
14 14   #set($card = $entry.split('\|'))
22 + #if (false)
15 15   <a href="$card[2]" style="text-decoration:none;">
16 16   <div style="
17 17   display:grid;
... ... @@ -25,12 +25,13 @@
25 25   <h3>$card[1]</h3>
26 26   </div>
27 27   </a>
36 + #end
37 +
38 + $card[0],$card[1],$card[2]
28 28  #end
29 - </div>
30 - {{/html}}
31 -#end
40 +## </div>
41 +{{/html}}
32 32  
33 -
34 34  ----
35 35  
36 36  == Search ==
... ... @@ -37,4 +37,5 @@
37 37  
38 38  {{documentTree root="document:$wikiRef:$docRef" finder="true" limit="30"/}}
39 39  
49 +#end
40 40  {{/velocity}}