Wiki source code of Home

Version 6.1 by Isaac Mejia on 2025/12/05 16:22

Hide last authors
Isaac Mejia 6.1 1 {{velocity}}
2 ## KB Home (Main.WebHome)
Isaac Mejia 4.1 3
Isaac Mejia 6.1 4 ## Optionally, you can centralize your category list here.
5 ## Each entry: [ "Label", "SpaceName", "Short description" ]
6 #set ($kbCategories = [
7 ["Member Management", "Member Management", "How to manage members, families, and profiles."],
8 ["Configuration", "Configuration", "Set up locations, billing, and core system settings."],
9 ["Billing & Payments", "Billing", "Invoices, collections, and payment processing."],
10 ["Reporting & Analytics", "Reporting", "Understand your numbers and performance."],
11 ["Integrations", "Integrations", "Connect eFit with other tools in your stack."]
12 ])
Isaac Mejia 4.1 13
Isaac Mejia 6.1 14 {{html clean="false"}}
15 <div class="kb-home">
Isaac Mejia 1.1 16
Isaac Mejia 6.1 17 <!-- HERO -->
18 <div class="kb-hero">
19 <h1 class="kb-hero-title">Member Solutions Knowledge Base</h1>
20 <p class="kb-hero-subtitle">
21 Guides, walkthroughs, and best practices to help you and your team get the most out of the platform.
22 </p>
Isaac Mejia 1.1 23
Isaac Mejia 6.1 24 <!-- Simple search box that posts to XWiki search -->
25 <div class="kb-hero-search">
26 <form action="$xwiki.getURL('Main.WebHome', 'view')" method="get">
27 <input
28 type="text"
29 name="text"
30 placeholder="Search for an article (e.g. &quot;family membership&quot;)"
31 />
32 </form>
33 </div>
34 </div>
Isaac Mejia 4.1 35
Isaac Mejia 6.1 36 <!-- CATEGORY GRID -->
37 <div class="kb-section">
38 <h2 class="kb-section-title">Browse by category</h2>
Isaac Mejia 4.1 39
Isaac Mejia 6.1 40 <div class="kb-category-grid">
41 #foreach ($cat in $kbCategories)
42 #set ($label = $cat.get(0))
43 #set ($spaceName = $cat.get(1))
44 #set ($desc = $cat.get(2))
Isaac Mejia 4.1 45
Isaac Mejia 6.1 46 ## Category page lives at Main.<Label>.WebHome (same pattern as our uploader)
47 #set ($docRef = "Main.${spaceName}.WebHome")
48 #set ($docObj = $xwiki.getDocument($docRef))
49 #set ($url = $docObj.getURL('view'))
Isaac Mejia 4.1 50
Isaac Mejia 6.1 51 <a class="kb-card" href="$url">
52 <div>
53 <div class="kb-card-title">$escapetool.xml($label)</div>
54 <div class="kb-card-body">
55 $escapetool.xml($desc)
56 </div>
57 </div>
58 <div class="kb-card-meta">
59 Category
60 </div>
61 </a>
62 #end
63 </div>
Isaac Mejia 4.1 64 </div>
65
Isaac Mejia 6.1 66 <!-- BOTTOM CTA -->
67 <div class="kb-cta">
68 <div class="kb-cta-content">
69 <h2>Still need help?</h2>
70 <p>
71 If you can’t find what you’re looking for, our support team is happy to help.
72 </p>
73 </div>
74 <a href="mailto:support@membersolutions.com" class="kb-cta-button">
Isaac Mejia 5.1 75 Contact Support
76 </a>
Isaac Mejia 4.1 77 </div>
Isaac Mejia 6.1 78
Isaac Mejia 4.1 79 </div>
Isaac Mejia 2.1 80 {{/html}}
Isaac Mejia 6.1 81 {{/velocity}}