Last modified by wiki admin on 2026/08/26 01:04

From version 3.1
edited by wiki admin
on 2026/08/24 21:20
Change comment: There is no comment for this version
To version 6.1
edited by wiki admin
on 2026/08/24 22:13
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,1 +1,1 @@
1 -Article accordion for the customer-facing design. Edit the object, not this text.
1 +Article accordion. Edit the object, not this text.
XWiki.JavaScriptExtension[0]
Code
... ... @@ -38,11 +38,21 @@
38 38   return svg;
39 39   }
40 40  
41 + function isWikiHome() {
42 + // The employees home page has several H2s (departments, article status,
43 + // publishing workflow). Collapsing a landing page into rows hides the
44 + // thing people came for, so skip it. Matches both URL schemes this
45 + // deployment serves: /bin/view/Main/ and /wiki/<name>/view/Main/.
46 + var path = (window.location.pathname || '').replace(/\/+$/, '');
47 + return /\/view\/Main(\/WebHome)?$/.test(path);
48 + }
49 +
41 41   function build() {
42 42   var body = document.body;
43 43   if (!body || body.className.indexOf('viewbody') === -1) {
44 44   return; // edit, preview, or anything that is not a rendered page
45 45   }
55 + if (isWikiHome()) { return; }
46 46   var content = document.getElementById('xwikicontent');
47 47   if (!content) { return; }
48 48  
Name
... ... @@ -1,1 +1,1 @@
1 -Alder article accordion
1 +Article accordion