Changes for page Alder Support Center scripts
Last modified by wiki admin on 2026/08/26 01:04
From version 2.1
edited by wiki admin
on 2026/08/24 21:04
on 2026/08/24 21:04
Change comment:
There is no comment for this version
To version 6.1
edited by wiki admin
on 2026/08/24 22:13
on 2026/08/24 22:13
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
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 -A lderarticle accordion1 +Article accordion - Use this extension
-
... ... @@ -1,1 +1,1 @@ 1 - onDemand1 +always