Skip to content

Commit e499756

Browse files
chughes-lincolnklassenjs
authored andcommitted
add doc for minimizing the catalog tab by default
1 parent f567ca8 commit e499756

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

docs/howto/tabs/hide-catalog.rst

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
How-to hide the catalog tab
2+
============================
3+
4+
Sometimes administrators of a site may want the catalog tab to be minimized by
5+
default. This can be useful for both small screens and for embedding your
6+
map in other websites. This can easily be done by making a simple edit to the
7+
``index.html`` file.
8+
9+
Change index.html
10+
------------------------------------------
11+
12+
In ``index.html``, find the body tag and add a tabs-closed class to it.
13+
14+
Default site configuration with the catalog tab open by default:
15+
16+
.. code:: html
17+
18+
<body>
19+
<div id="main">
20+
<div id="header">
21+
<img height="50" src="logo.png">
22+
<div id="toolbar"></div>
23+
</div>
24+
...
25+
26+
Site configuration with the catalog tab minimized. Note that there is a
27+
space before tabs-closed (without the space the catalog tab is minimized
28+
by default, but you can't unminimize it):
29+
30+
.. code:: html
31+
32+
<body class=" tabs-closed">
33+
<div id="main">
34+
<div id="header">
35+
<img height="50" src="logo.png">
36+
<div id="toolbar"></div>
37+
</div>
38+
...
39+
40+

0 commit comments

Comments
 (0)