Changes for page Card Navigation
Last modified by Calvin Henderson on 2025/03/11 10:29
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.WikiMacroClass[0]
-
- code
-
... ... @@ -1,25 +1,20 @@ 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 5 +#if("$xcontext.action" == "edit") 6 + |Icon Name|Title|Wiki link or URL| 7 + |{{wikimacrocontent/}}| 7 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 - 9 +#else 10 + #set($entries = $wikimacro.content) 11 + {{html wiki="true"}} 12 + <div style="display: grid; 13 + grid-template-columns: 1fr 1fr 1fr; 14 + gap: 10px; 15 + "> 20 20 #foreach($entry in $entries.split('\n')) 21 21 #set($card = $entry.split('\|')) 22 - #if (false) 23 23 <a href="$card[2]" style="text-decoration:none;"> 24 24 <div style=" 25 25 display:grid; ... ... @@ -33,13 +33,12 @@ 33 33 <h3>$card[1]</h3> 34 34 </div> 35 35 </a> 36 - #end 37 - 38 - $card[0],$card[1],$card[2] 39 39 #end 40 -## </div> 41 -{{/html}} 32 + </div> 33 + {{/html}} 34 +#end 42 42 36 + 43 43 ---- 44 44 45 45 == Search == ... ... @@ -46,5 +46,4 @@ 46 46 47 47 {{documentTree root="document:$wikiRef:$docRef" finder="true" limit="30"/}} 48 48 49 -#end 50 50 {{/velocity}}