plugin:sidebarng
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:sidebarng [2010-06-02 00:13] – 71.198.156.157 | plugin:sidebarng [2023-10-30 23:43] (current) – Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : chi@chimeric.de | email : chi@chimeric.de | ||
type : Action | type : Action | ||
- | lastupdate : 2010-05-31 | + | lastupdate : 2010-06-04 |
- | compatible : 2009-12-25, 2009-02-14 | + | compatible : Lemming |
depends | depends | ||
conflicts | conflicts | ||
Line 13: | Line 13: | ||
tags : sidebar | tags : sidebar | ||
- | downloadurl: | + | downloadurl: |
- | bugtracker : http:// | + | bugtracker : https:// |
- | sourcerepo : http:// | + | sourcerepo : https:// |
- | donationurl: | + | |
---- | ---- | ||
- | ===== Donate ===== | ||
- | Support the ongoing development of DokuWiki Plugins and Templates and [[https:// | ||
===== Installation ===== | ===== Installation ===== | ||
+ | |||
Download the archive and unpack it into ''< | Download the archive and unpack it into ''< | ||
- | * [[http://cloud.github.com/downloads/ | + | * [[https:// |
The plugin can also be installed via git. | The plugin can also be installed via git. | ||
Line 32: | Line 30: | ||
% git clone git:// | % git clone git:// | ||
</ | </ | ||
+ | |||
+ | ==== New Development Version ==== | ||
+ | |||
+ | Hello, I created a new repository with updates from arctic and dokubook template and some more config options. | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | {{http:// | ||
+ | |||
+ | {{http:// | ||
===== Configuration ===== | ===== Configuration ===== | ||
+ | |||
The plugin can be configured using DokuWiki' | The plugin can be configured using DokuWiki' | ||
Line 45: | Line 55: | ||
===== Sidebar Types ===== | ===== Sidebar Types ===== | ||
+ | |||
These are the different sidebar types. | These are the different sidebar types. | ||
^ Type ^ Description ^ | ^ Type ^ Description ^ | ||
- | | main | see [[.:sidebarng#adding the main sidebar|main sidebar]] | | + | | main | see [[#adding the main sidebar|main sidebar]] | |
- | | user | see [[.:sidebarng#adding a user sidebar|user sidebar]] | | + | | user | see [[#adding a user sidebar|user sidebar]] | |
- | | group | see [[.:sidebarng#adding a group sidebar|group sidebar]] | | + | | group | see [[#adding a group sidebar|group sidebar]] | |
- | | namespace | see [[.:sidebarng#adding a namespace sidebar|namespace sidebar]] | | + | | namespace | see [[#adding a namespace sidebar|namespace sidebar]] | |
| trace | shows the trace | | | trace | shows the trace | | ||
| toolbox | shows the set of " | | toolbox | shows the set of " | ||
| extra | You can put a file inside ''< | | extra | You can put a file inside ''< | ||
- | | custom | see [[.:sidebarng#adding custom sidebars|custom sidebar]] | | + | | custom | see [[#adding custom sidebars|custom sidebar]] | |
===== ACL Setup ===== | ===== ACL Setup ===== | ||
+ | |||
If you like to use the user- or group-sidebars you have to set up your ''< | If you like to use the user- or group-sidebars you have to set up your ''< | ||
Line 72: | Line 84: | ||
===== First Steps ===== | ===== First Steps ===== | ||
+ | |||
==== Adding the Main Sidebar ==== | ==== Adding the Main Sidebar ==== | ||
+ | |||
First of all, you would probably like to create the //main sidebar//, i.e. the sidebar associated with the root namespace. You simply have to create a wikipage called '' | First of all, you would probably like to create the //main sidebar//, i.e. the sidebar associated with the root namespace. You simply have to create a wikipage called '' | ||
Line 80: | Line 94: | ||
[[some: | [[some: | ||
- | TIP: It is possible to create this page right in the wiki. Go to any page of your wiki and change the query string of the URL (in your browser' | + | Tip: It is possible to create this page right in the wiki. Go to any page of your wiki and change the query string of the URL (in your browser' |
==== Adding a User Sidebar ==== | ==== Adding a User Sidebar ==== | ||
+ | |||
If you've enabled '' | If you've enabled '' | ||
==== Adding a Group Sidebar ==== | ==== Adding a Group Sidebar ==== | ||
+ | |||
Group sidebars are set up just like user sidebars. For example, to create a sidebar visible only to those in the admin group, you would create one named group: | Group sidebars are set up just like user sidebars. For example, to create a sidebar visible only to those in the admin group, you would create one named group: | ||
==== Adding a Namespace Sidebar ==== | ==== Adding a Namespace Sidebar ==== | ||
+ | |||
If you've enabled namespace sidebars you can add a sidebar for every namespace you like. Thus the naming scheme is the same for all sidebars, the only thing you've to do is create a page called, you guessed right ;-), " | If you've enabled namespace sidebars you can add a sidebar for every namespace you like. Thus the naming scheme is the same for all sidebars, the only thing you've to do is create a page called, you guessed right ;-), " | ||
==== Adding custom sidebars ==== | ==== Adding custom sidebars ==== | ||
+ | |||
The plugin also supports custom sidebars. You can create your own custom sidebar by creating a new subdirectory inside ''< | The plugin also supports custom sidebars. You can create your own custom sidebar by creating a new subdirectory inside ''< | ||
===== Bugs / Feature Requests ===== | ===== Bugs / Feature Requests ===== | ||
- | Please report bugs or feature requests at the [[http:// | + | |
+ | Please report bugs or feature requests at the [[https:// | ||
===== Further Resources ===== | ===== Further Resources ===== | ||
- | * [[http:// | + | * [[https:// |
- | * [[http:// | + | * [[https:// |
===== Changes ===== | ===== Changes ===== | ||
- | {{rss>http:// | + | {{rss>https:// |
===== FAQ ===== | ===== FAQ ===== | ||
==== It doesn' | ==== It doesn' | ||
+ | |||
That's most probably a caching issue - try CTRL+SHIFT+R in Firefox. | That's most probably a caching issue - try CTRL+SHIFT+R in Firefox. | ||
==== Change text alignment ==== | ==== Change text alignment ==== | ||
+ | |||
Change the style.css in the plugin-folder. You'll need to empty the caches, otherwise the change will not show immediately. | Change the style.css in the plugin-folder. You'll need to empty the caches, otherwise the change will not show immediately. | ||
===== Discussion ====== | ===== Discussion ====== | ||
- | **NOTE:** Don't post patches, bug reports or feature requests here. Use the [[http:// | + | |
+ | **NOTE:** Don't post patches, bug reports or feature requests here. Use the [[https:// | ||
---- | ---- | ||
I believe that a couple of screenshots will be useful here. [[mirari@mail.ru|mirari]] | I believe that a couple of screenshots will be useful here. [[mirari@mail.ru|mirari]] | ||
+ | mirari, I'm a user who didn't make screenshots, | ||
+ | |||
+ | ---- | ||
+ | |||
+ | < | ||
+ | It works for the mainpage but not for having different tocs according to namespaces. [[isma.ballo_NOSPAM_@gmail.com|isma]] | ||
+ | </ | ||
+ | Finally, it works, not needing to add the namespaces' | ||
+ | |||
+ | ---- | ||
+ | |||
+ | Yes, there is a definite problem with the clear:both tag in sidebarng/ | ||
+ | |||
+ | ==== Non-Printing Sidebar ==== | ||
+ | |||
+ | I didn't want the sidebar content showing up when users printed the page. To accomplish that, I added a print.css stylesheet to the dokuwiki\lib\plugins\sidebarng folder. Here is it's content: | ||
+ | <code css> | ||
+ | div.dokuwiki div.left_sidebar { | ||
+ | display: none; | ||
+ | } | ||
+ | |||
+ | div.dokuwiki div.right_sidebar | ||
+ | display: none; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ==== Here is the code if you want to keep a fixed header, foot, sidebar and toc ==== | ||
+ | |||
+ | <code css> | ||
+ | div.dokuwiki div.stylehead { | ||
+ | position: | ||
+ | top:0; | ||
+ | left:0; | ||
+ | width:100%; | ||
+ | height: | ||
+ | background-color:# | ||
+ | overflow: | ||
+ | z-index: | ||
+ | } | ||
+ | |||
+ | div.dokuwiki div.stylefoot { | ||
+ | position: | ||
+ | bottom:0; | ||
+ | left:0; | ||
+ | width:100%; | ||
+ | height: | ||
+ | background-color:# | ||
+ | overflow: | ||
+ | } | ||
+ | |||
+ | |||
+ | div.dokuwiki div.left_sidebar { | ||
+ | position: | ||
+ | top:100px; | ||
+ | left:0; | ||
+ | width: | ||
+ | height: | ||
+ | overflow: | ||
+ | padding: | ||
+ | border-right: | ||
+ | } | ||
+ | |||
+ | div.dokuwiki div.page_right { | ||
+ | height: | ||
+ | overflow: | ||
+ | margin:90px 5px 50px 200px; | ||
+ | display: | ||
+ | } | ||
+ | |||
+ | div.dokuwiki div.sidebar_box ul { | ||
+ | margin-left: | ||
+ | } | ||
+ | |||
+ | div.dokuwiki div.page_right div.toc { | ||
+ | position: fixed; | ||
+ | right: 5px; | ||
+ | top: 60px; | ||
+ | z-index: | ||
+ | } | ||
+ | |||
+ | .anchor { | ||
+ | padding-top: | ||
+ | } | ||
+ | |||
+ | div.dokuwiki div.page_right div.toc a { | ||
+ | padding-top: | ||
+ | } | ||
+ | |||
+ | //this is to hide the small inc button | ||
+ | div.footerinc { | ||
+ | display: | ||
+ | } | ||
+ | //this is to hide the edit button in the sidebar | ||
+ | div.dokuwiki div.left_sidebar form { | ||
+ | display: | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | Note about the class .anchor. | ||
+ | Before | ||
+ | <code php> | ||
+ | $this-> | ||
+ | </ | ||
+ | After | ||
+ | <code php> | ||
+ | $this-> | ||
+ | </ |
plugin/sidebarng.1275430395.txt.gz · Last modified: 2010-06-02 00:13 by 71.198.156.157