template:simple_sidebar
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
template:simple_sidebar [2016-01-30 17:58] – [Sizing the page] turnermm | template:simple_sidebar [2023-10-30 23:48] (current) – Klap-in | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- template ---- | ---- template ---- | ||
- | description | + | description |
author | author | ||
email : turnermm02@shaw.ca | email : turnermm02@shaw.ca | ||
- | lastupdate | + | lastupdate |
- | compatible | + | compatible |
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
- | screenshot_img: | + | screenshot_img: |
tags : sidebar | tags : sidebar | ||
Line 16: | Line 16: | ||
bugtracker | bugtracker | ||
sourcerepo | sourcerepo | ||
- | donationurl | + | donationurl: |
---- | ---- | ||
+ | A simple left-hand side bar which retains the look and feel of the original " | ||
- | A simple left-hand side bar which retains the look and feel of the original " | + | There is also a toggle button above the sidebar for closing and opening it. |
- | + | ||
- | There is also a toggle button above the sidebar for closing and opening it. | + | |
===== Download and Install ====== | ===== Download and Install ====== | ||
Line 29: | Line 28: | ||
==== For earlier Dokuwiki distributions ==== | ==== For earlier Dokuwiki distributions ==== | ||
- | | + | |
+ | | ||
* Anteater: [[http:// | * Anteater: [[http:// | ||
* Lemming: [[http:// | * Lemming: [[http:// | ||
Refer to [[: | Refer to [[: | ||
- | |||
- | |||
- | |||
==== Sizing the page ==== | ==== Sizing the page ==== | ||
+ | |||
These instructions apply only to the to distributions post-anteater. | These instructions apply only to the to distributions post-anteater. | ||
- | This template has a left-hand sidebar and a right-hand main page. The default measurements are set in the file style.ini: | + | This template has a left-hand sidebar and a right-hand main page. The default measurements are set in the file style.ini: |
- | * %%__page_width__%% = " | + | * '' |
- | * %%__right_width__%% | + | * '' |
- | * %%__top_bar_width__%% = " | + | * '' |
- | * %%__bottom_bar_width__%% = " | + | * '' |
- | There is no separate setting for the side bar. The size of the sidebar is always relative to the main page, so that if the main page is set to 75%, then the sidebar will be 25%. Using the above values, that would mean that the main page would be 750px wide and the side bar 250px. | + | There is no separate setting for the side bar. The size of the sidebar is always relative to the main page, so that if the main page is set to 75%, then the sidebar will be 25%. Using the above values, that would mean that the main page would be 750px wide and the side bar 250px. |
- | The top bar and bottom bar sizes are set to fit into the default page layout and may have to be adjusted if the sizes of the sidebar and main page change. | + | The top bar and bottom bar sizes are set to fit into the default page layout and may have to be adjusted if the sizes of the sidebar and main page change. |
- | For more information about style.ini, see the [[devel: | + | For more information about '' |
=== Setting Up the Sidebar === | === Setting Up the Sidebar === | ||
+ | |||
The sidebar has two components, the main (top) section, which is required, and the bottom section which is user-defined. | The sidebar has two components, the main (top) section, which is required, and the bottom section which is user-defined. | ||
- | - **The main section** \\ The sidebar content can be included in either the file sidebar.html or sidebar.php. It has a default set-up, which serves as an example. You can alter this as you need. It uses a default css styling which fits in with the styling of the main page. There is only one proviso, that is, if the text of the sidebar is wider than the sidebar, it will encroach on the main page. | + | - **The main section**\\ The sidebar content can be included in either the file sidebar.html or sidebar.php. It has a default set-up, which serves as an example. You can alter this as you need. It uses a default css styling which fits in with the styling of the main page. There is only one proviso, that is, if the text of the sidebar is wider than the sidebar, it will encroach on the main page. |
- | - **User-defined section** \\ This is a wiki page created in the sidebar namespace with the user's name. For instance, if the user is jones and there is a page named: '' | + | - **User-defined section**\\ This is a wiki page created in the sidebar namespace with the user's name. For instance, if the user is jones and there is a page named: '' |
- | The user-defined sidebar component is not in some of the earlier distributions. | + | The user-defined sidebar component is not in some of the earlier distributions. |
=== Configuration Options for Suppressing the Sidebar === | === Configuration Options for Suppressing the Sidebar === | ||
- | - '' | + | |
- | | + | |
+ | - '' | ||
When either of these options is active the toggle button is also turned off. | When either of these options is active the toggle button is also turned off. | ||
=== Font Size === | === Font Size === | ||
- | With changes on December 11 2014, the font-size was increased. | + | |
- | < | + | With changes on December 11 2014, the font-size was increased. However, if your prefer the smaller size of previous distributions, |
- | /* font: 9pt bold Verdana," | + | |
- | </ | + | < |
- | You will find it at about line 30. | + | /* font: 9pt bold Verdana, " |
+ | </ | ||
+ | |||
+ | You will find it at about line 30. | ||
===== Discussion ===== | ===== Discussion ===== | ||
Line 77: | Line 80: | ||
===== Sites using this Template ===== | ===== Sites using this Template ===== | ||
- | * Add yours here | + | * Add yours here |
- | * http:// | + | * https:// |
template/simple_sidebar.1454173088.txt.gz · Last modified: 2016-01-30 17:58 by turnermm