Changes for page Alder Support Center
Last modified by superadmin on 2026/09/01 18:27
From version 19.1
edited by superadmin
on 2026/09/01 18:27
on 2026/09/01 18:27
Change comment:
There is no comment for this version
To version 15.1
edited by wiki admin
on 2026/08/25 00:36
on 2026/08/25 00:36
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. superadmin1 +xwiki:XWiki.wikiadmin - Content
-
... ... @@ -29,7 +29,7 @@ 29 29 ## page looks complete, but a customer clicking a card 30 30 ## lands on an empty space. Only set this true if you are 31 31 ## about to publish into these categories anyway. 32 -#set($showEmpty = true)32 +#set($showEmpty = false) 33 33 34 34 #set($cats = [ 35 35 {'space': 'Tech Support', ... ... @@ -66,7 +66,7 @@ 66 66 67 67 ## Same count query the employees home page uses. Counting pages in the space 68 68 ## and its sub-spaces, excluding the space home itself. 69 -#set($countQuery = "select count(doc.fullName) from Document doc where (doc.space = :s or doc.space like :p) and doc.name <> 'WebHome' and doc.hidden <> true")69 +#set($countQuery = "select count(doc.fullName) from Document doc where (doc.space = :s or doc.space like :p) and doc.name <> 'WebHome'") 70 70 #set($live = []) 71 71 #set($total = 0) 72 72 #foreach($c in $cats) ... ... @@ -84,14 +84,6 @@ 84 84 above it. Scoped to this page by living in this page's content. */ 85 85 #document-title{display:none} 86 86 #xwikicontent > p:empty{display:none} 87 - 88 -/* The card title is a link now (see the note by the card markup below), and 89 - without this it renders as blue underlined body text rather than a heading. 90 - Kept here rather than in the theme stylesheet so this page needs no second 91 - deploy to look right. */ 92 -.alder-cat h3 a{color:inherit;text-decoration:none} 93 -.alder-cat h3 a:hover{color:var(--link);text-decoration:none} 94 -.alder-cat h3{margin:0 0 6px} 95 95 </style> 96 96 97 97 <div class="alder-hero"> ... ... @@ -118,27 +118,19 @@ 118 118 == Browse by topic == 119 119 120 120 {{html clean="false"}} 121 -## The card is a DIV, and only the title is a link. 122 -## 123 -## It was an anchor wrapping the whole card, which is what a card wants to be. 124 -## XWiki's HTML cleaner will not have it: an anchor may not contain block 125 -## elements such as headings and paragraphs, so the cleaner split the anchor 126 -## into several, rebuilt the inner nodes, and the class attributes the 127 -## stylesheet keys on went with them. The visible symptom was every line of the 128 -## card underlined as its own separate link, with no card, no icon tile and no 129 -## grid. 130 -## 131 -## Do not "improve" this back into a wrapping anchor. 132 132 <div class="alder-cats"> 133 133 #foreach($c in $live) 134 - <div class="alder-cat" style="--c:$c.c;--t:$c.t"> 135 - <span class="alder-cat-ico"><svg viewBox="0 0 24 24" width="21" height="21" fill="none" stroke="$c.c" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="$c.d"/></svg></span> 136 - <h3><a href="$xwiki.getURL("${c.space}.WebHome")">$c.label</a></h3> 115 + <a class="alder-cat" href="$xwiki.getURL("${c.space}.WebHome")" style="--c:$c.c;--t:$c.t"> 116 + <span class="alder-cat-ico"> 117 + <svg viewBox="0 0 24 24" width="21" height="21" fill="none" stroke="$c.c" 118 + stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="$c.d"/></svg> 119 + </span> 120 + <h3>$c.label</h3> 137 137 <p>$c.blurb</p> 138 138 #if($c.n > 0) 139 139 <span class="alder-cat-count">$c.n article#if($c.n != 1)s#end</span> 140 140 #end 141 - </ div>125 + </a> 142 142 #end 143 143 </div> 144 144 {{/html}} ... ... @@ -159,7 +159,7 @@ 159 159 #end 160 160 #if($clause != "") 161 161 #set($whereClause = $clause.substring(4)) 162 - #set($recentQuery = "where doc.name <> 'WebHome' and doc.hidden <> true and(${whereClause}) order by doc.date desc")146 + #set($recentQuery = "where doc.name <> 'WebHome' and (${whereClause}) order by doc.date desc") 163 163 #set($recent = $services.query.xwql($recentQuery).setLimit(6).execute()) 164 164 #else 165 165 #set($recent = [])