Changes for page Card Navigation
Last modified by Calvin Henderson on 2025/03/11 10:29
Summary
-
Objects (1 modified, 1 added, 0 removed)
Details
- XWiki.WikiMacroClass[0]
-
- code
-
... ... @@ -2,24 +2,19 @@ 2 2 #set($wikiRef = $doc.documentReference.getWikiReference().getName()) 3 3 #set($docRef = $doc.getFullName()) 4 4 #set($entries = $wikimacro.content) 5 -#if("$xcontext.action" != "edit") 6 6 6 +#if("$xcontext.action" == "edit") 7 +{{wikimacrocontent/}} 8 +#else 7 7 8 -$entries 9 9 10 - 11 - 12 -{{html wiki="true"}} 13 -#if (false) 11 +{{html wiki="false"}} 14 14 <div style="display: grid; 15 15 grid-template-columns: 1fr 1fr 1fr; 16 16 gap: 10px; 17 17 "> 18 -#end 19 - 20 -#foreach($entry in $entries.split('\n')) 21 - #set($card = $entry.split('\|')) 22 - #if (false) 16 + #foreach($entry in $entries.split('\n')) 17 + #set($card = $entry.split('\|')) 23 23 <a href="$card[2]" style="text-decoration:none;"> 24 24 <div style=" 25 25 display:grid; ... ... @@ -34,12 +34,11 @@ 34 34 </div> 35 35 </a> 36 36 #end 37 - 38 - $card[0],$card[1],$card[2] 39 -#end 40 -## </div> 32 + </div> 41 41 {{/html}} 42 42 35 + 36 +#if ($wikimacro.parameters.enableSearch == true) 43 43 ---- 44 44 45 45 == Search == ... ... @@ -47,4 +47,5 @@ 47 47 {{documentTree root="document:$wikiRef:$docRef" finder="true" limit="30"/}} 48 48 49 49 #end 44 +#end 50 50 {{/velocity}}
- XWiki.WikiMacroParameterClass[0]
-
- defaultValue
-
... ... @@ -1,0 +1,1 @@ 1 +true - description
-
... ... @@ -1,0 +1,1 @@ 1 +Enables a local document search box below the grid - name
-
... ... @@ -1,0 +1,1 @@ 1 +enableSearch - type
-
... ... @@ -1,0 +1,1 @@ 1 +Unknown