Changes for page Card Navigation

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

From version 14.47
edited by calvin_henderson
on 2024/12/18 13:21
Change comment: There is no comment for this version
To version 14.35
edited by calvin_henderson
on 2024/12/18 13:14
Change comment: There is no comment for this version

Summary

Details

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