Last modified by Isaac Mejia on 2026/06/08 19:59

From version 2.1
edited by Isaac Mejia
on 2026/05/20 18:33
Change comment: There is no comment for this version
To version 5.1
edited by Isaac Mejia
on 2026/06/08 19:59
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -Home
1 +eFit Financial Knowledge Base
Content
... ... @@ -1,1 +1,127 @@
1 -{{children/}}
1 +{{velocity}}
2 +## ---------------------------------------------
3 +## KB Home (Main.WebHome)
4 +## eFit Financial Knowledge Base
5 +## ---------------------------------------------
6 +
7 +#set ($allowedCategories = [
8 + "Member_Management",
9 + "Payment_Management",
10 + "Club_Administration",
11 + "Member_Portal",
12 + "Activity_Scheduler",
13 + "Check_In"
14 +])
15 +
16 +#set ($kbCategoryIcons = {
17 + "Member_Management": "👥",
18 + "Payment_Management": "💳",
19 + "Club_Administration": "⚙️",
20 + "Member_Portal": "🌐",
21 + "Activity_Scheduler": "📅",
22 + "Check_In": "✅"
23 +})
24 +
25 +#set ($kbCategoryLabels = {
26 + "Member_Management": "Member Management",
27 + "Payment_Management": "Payment Management",
28 + "Club_Administration": "Club Administration",
29 + "Member_Portal": "Member Portal",
30 + "Activity_Scheduler": "Activity Scheduler",
31 + "Check_In": "Check-In"
32 +})
33 +
34 +#set ($kbCategoryDescriptions = {
35 + "Member_Management": "Add, manage, and maintain member accounts.",
36 + "Payment_Management": "Payments, invoices, point of sale, and billing.",
37 + "Club_Administration": "Club settings, contracts, and configuration.",
38 + "Member_Portal": "Member portal, access control, and Brivo.",
39 + "Activity_Scheduler": "Scheduling activities, sessions, and packages.",
40 + "Check_In": "Front counter check-in, FCCS, and time keeper."
41 +})
42 +
43 +#set ($kbCategories = [])
44 +
45 +#foreach ($space in $allowedCategories)
46 + #set ($label = $kbCategoryLabels.get($space))
47 + #set ($desc = $kbCategoryDescriptions.get($space))
48 + #set ($icon = $kbCategoryIcons.get($space))
49 +
50 + #set ($articleCount = 0)
51 + #set ($countXwql =
52 + "select count(doc.fullName) " +
53 + "from XWikiDocument doc " +
54 + "where doc.space = :space " +
55 + "and doc.name <> 'WebHome' " +
56 + "and doc.hidden <> true"
57 + )
58 + #set ($countQuery = $services.query.xwql($countXwql))
59 + #set ($discard = $countQuery.bindValue("space", "Main." + $space))
60 + #set ($resultList = $countQuery.execute())
61 + #if ($resultList && $resultList.size() > 0)
62 + #set ($articleCount = $resultList.get(0))
63 + #end
64 +
65 + #set ($cleanUrl = "/Main/" + $space)
66 +
67 + #set ($entry = {
68 + "label": $label,
69 + "desc": $desc,
70 + "icon": $icon,
71 + "url": $cleanUrl,
72 + "count": $articleCount
73 + })
74 + #set ($discard = $kbCategories.add($entry))
75 +#end
76 +
77 +{{html clean="false"}}
78 +<div class="kb-home">
79 +
80 + <div class="kb-hero">
81 + <h1 class="kb-hero-title">eFit Financial Knowledge Base</h1>
82 + <p class="kb-hero-subtitle">
83 + Guides, walkthroughs, and best practices to help you and your team get the most out of Club Advantage.
84 + </p>
85 + </div>
86 +
87 + <div class="kb-section">
88 + <h2 class="kb-section-title">Browse by category</h2>
89 +
90 + <div class="kb-category-grid">
91 + #foreach ($cat in $kbCategories)
92 + #set ($label = $cat.get("label"))
93 + #set ($desc = $cat.get("desc"))
94 + #set ($icon = $cat.get("icon"))
95 + #set ($url = $cat.get("url"))
96 + #set ($count = $cat.get("count"))
97 +
98 + <a class="kb-card" href="$url">
99 + <div>
100 + <div class="kb-card-title">
101 + <span class="kb-card-icon">$icon</span>
102 + $escapetool.xml($label)
103 + </div>
104 + <div class="kb-card-body">
105 + $escapetool.xml($desc)
106 + </div>
107 + </div>
108 + <div class="kb-card-meta">
109 + #if ($count == 1)
110 + 1 article
111 + #elseif ($count > 1)
112 + $count articles
113 + #else
114 + Category
115 + #end
116 + </div>
117 + </a>
118 + #end
119 + </div>
120 + </div>
121 +
122 +</div>
123 +{{/html}}
124 +{{/velocity}}
125 +
126 +{{include reference="KBSupportCTA.WebHome"/}}
127 +