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
-
... ... @@ -2,12 +2,8 @@ 2 2 #set($wikiRef = $doc.documentReference.getWikiReference().getName()) 3 3 #set($docRef = $doc.getFullName()) 4 4 5 -#if("$xcontext.action" == "edit") 6 - |Icon Name|Title|Wiki link or URL| 7 - |{{wikimacrocontent/}}| 8 - 9 -#else 10 - #set($entries = $wikimacro.content) 5 +#if("$xcontext.action" != "edit") 6 +#set($entries = $wikimacro.content) 11 11 {{html wiki="true"}} 12 12 <div style="display: grid; 13 13 grid-template-columns: 1fr 1fr 1fr; ... ... @@ -15,7 +15,7 @@ 15 15 "> 16 16 #foreach($entry in $entries.split('\n')) 17 17 #set($card = $entry.split('\|')) 18 - <a href= "$card[2]"style="text-decoration:none;">14 + <a href=$card[2] style="text-decoration:none;"> 19 19 <div style=" 20 20 display:grid; 21 21 text-align:center; ... ... @@ -24,7 +24,7 @@ 24 24 border:1px solid rgba(222,222,222,1); 25 25 border-bottom: 3px solid rgba(222,222,222,1); 26 26 "> 27 - <i class="fa $card[0] "style="font-size:4em;"></i>23 + <i class="fa "$card[0] style="font-size:4em;"></i> 28 28 <h3>$card[1]</h3> 29 29 </div> 30 30 </a>