Changes for page Card Navigation

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

From version 21.3
edited by calvin_henderson
on 2024/12/19 14:34
Change comment: There is no comment for this version
To version 21.6
edited by calvin_henderson
on 2024/12/19 14:36
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
code
... ... @@ -11,7 +11,7 @@
11 11   #set($card = $entry.split('\|'))
12 12   #set($href = $card[2])
13 13   #if (!$href.toString().startsWith('http') && !$href.contains('.'))
14 - #set($href = "$wikiref:$docRef.$href")
14 + #set($href = $wikiRef + ":$docRef.$href")
15 15   #end
16 16   #set($doc = $xwiki.getDocument($card[2]))
17 17   #set($canView =
... ... @@ -20,9 +20,8 @@
20 20   || $services.security.authorization.hasAccess('edit', $href)
21 21   || $services.security.authorization.hasAccess('admin', $href)
22 22   )
23 - $href
24 24   #if ($canView)
25 - <a href="$href" style="text-decoration:none;">
24 + <a href="$xwiki.getDocument($href).getURL()" style="text-decoration:none;">
26 26   <div style="
27 27   display:grid;
28 28   text-align:center;