Fossil SCM

Added a section to the customskin.md doc explaining where the main menu contents went and how to change them in the new "mainmenu" world.

wyoung 2021-02-26 13:01 trunk
Commit da2291075b19da68a9c105d83731aed63bb81ca3719fe047fb82423d5e2130d6
1 file changed +17
--- www/customskin.md
+++ www/customskin.md
@@ -134,10 +134,27 @@
134134
Finally, Fossil always adds its own footer (unless overridden)
135135
to close out the generated HTML:
136136
137137
</body>
138138
</html>
139
+
140
+## <a name="mainmenu"></a>Changing the Main Menu Contents
141
+
142
+As of Fossil 2.15, the actual text content of the skin’s main menu is no
143
+longer part of the skin proper if you’re using one of the stock skins.
144
+If you look at the Header section of the skin, you’ll find a
145
+`<div class="mainmenu">` element whose contents are set by a short
146
+[TH1](./th1.md) script from the contents of the **Main Menu** section of
147
+the Setup → Configuration screen.
148
+
149
+This feature allows the main menu contents to stay the same across
150
+different skins, so you no longer have to reapply menu customizations
151
+when trying different skins.
152
+
153
+See the [`capexpr`](./th1.md#capexpr) section of the TH1 docs for help
154
+on interpreting the default contents of this block.
155
+
139156
140157
## <a name="override"></a>Overriding the HTML Header and Footer
141158
142159
Notice that the `<html>`, `<head>`, and opening `<body>`
143160
elements at the beginning of the document,
144161
--- www/customskin.md
+++ www/customskin.md
@@ -134,10 +134,27 @@
134 Finally, Fossil always adds its own footer (unless overridden)
135 to close out the generated HTML:
136
137 </body>
138 </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
140 ## <a name="override"></a>Overriding the HTML Header and Footer
141
142 Notice that the `<html>`, `<head>`, and opening `<body>`
143 elements at the beginning of the document,
144
--- www/customskin.md
+++ www/customskin.md
@@ -134,10 +134,27 @@
134 Finally, Fossil always adds its own footer (unless overridden)
135 to close out the generated HTML:
136
137 </body>
138 </html>
139
140 ## <a name="mainmenu"></a>Changing the Main Menu Contents
141
142 As of Fossil 2.15, the actual text content of the skin’s main menu is no
143 longer part of the skin proper if you’re using one of the stock skins.
144 If you look at the Header section of the skin, you’ll find a
145 `<div class="mainmenu">` element whose contents are set by a short
146 [TH1](./th1.md) script from the contents of the **Main Menu** section of
147 the Setup → Configuration screen.
148
149 This feature allows the main menu contents to stay the same across
150 different skins, so you no longer have to reapply menu customizations
151 when trying different skins.
152
153 See the [`capexpr`](./th1.md#capexpr) section of the TH1 docs for help
154 on interpreting the default contents of this block.
155
156
157 ## <a name="override"></a>Overriding the HTML Header and Footer
158
159 Notice that the `<html>`, `<head>`, and opening `<body>`
160 elements at the beginning of the document,
161

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button