Translations of this page?:

Masa Template

Author Kirill Bezrukov
Compatibility DokuWiki 2007-11-06 and later
Download Masa
Last Update 2008-04-22

Features

  • Optional left Sidebar – thanks to the Arctic template !
  • Template configurable via the dokuwiki configuration manager
  • The Action Menu
    • Action menu elements configurable via the dokuwiki configuration manager
    • Allow to adding your own actions
    • English and Russian translation

Screenshots

Installation

Simply download the template file into the lib/tpl directory of your dokuwiki installation and unpack it. Then modify your dokuwiki.php (or local.php ) to use this template, whose name is masa .

You can modify the template options from the configuration manager.

Sidebar

Sidebar Types

These are the different sidebar types.

Type Description
main see main sidebar
user see user sidebar
group see group sidebar
namespace see namespace sidebar
index shows the DokuWiki index
custom see custom sidebar
This comes in handy for example if you like to add google adds.

ACL Setup

If you like to use the user- or group-sidebars you have to set up your <dokuwiki>/conf/acl.auth.php the right way.

This is an example setup for a user “tom” (User-Name: tom) who is a member of group ”@user”. The “user sidebar namespace” is set to ”user” and “group sidebar namespace” is set to ”group”. We will grant him write/page-creation/upload permissions for his own namespace and read/edit permissions for the group:users namespace to everyone who`s part of the group ”@users”.

---- snip ----
user:*           @ALL   0
group:*          @ALL   0
user:tom:*       tom    8
group:users:*    @user  2
---- snap ----

First Steps

Adding the Main Sidebar

First of all you probably like to create the main sidebar. If you didn`t change the “Pagename” setting you simply have to create a wikipage called sidebar1) and add some links.

====== Navigation  ======
[[wiki:playground]]\\
[[wiki:syntax]]\\
[[some:more:links]]\\

Adding a User Sidebar

If you`ve enabled user sidebars you can add a sidebar for each registered user. All you have to do is create a wikipage user:username:sidebar. Note, this feature depends on a proper acl-setup.

Adding a Group Sidebar

Group sidebars are set up just like user sidebars.

Adding a Namespace Sidebar

If you`ve enable 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 creating a page called, you guessed right ;-), “sidebar” inside the desired namespace. This sidebar, then, will only show if you browse pages within this namespace.

Action management

This template supports action menu management from the administration tools which are shipped with dokuwiki.

Wikis Using this Template

Add your own in this list if you use this template!

  • EvenFooting.org - Open source franchising, small business ideas.
    • I've modified it slightly to add some syntax hints and syntax plugin hints at the bottom of the edit page.
  • GNU/Anime - Wiki for anime-otakus of GNU userland

Changelog

  • 2008-04-22
    • + Optional sidebar (for Reder :))
  • 2008-03-31
    • Initial release

Compatibility

This template has been tested with the following browsers :

  • Mozilla Firefox 2.0 (windows)
  • Mozilla Firefox 3.0 Beta 5 (windows)
  • Internet Explorer 6
  • Internet Explorer 7
  • Opera 9.27
  • Safari 3.1.1 (windows)

If you verify this template against a browser which is not in the above list, add it !

Known bugs and issues

Credits

  • Thanks to the Arctic template author. I have used that template as a starting point for creating this one.

Discussion

  • Is it possible to make the sidebar optional? — Reder 2008/04/22 03:50
    • It's done. In admin menu now it have check box to on/off sidebar
  • Can you put the toc into the sidebar like artic template? — Haya 2008/04/29 07:50
1) or whatever you set pagename to
 
wiki/tpl/masa.txt · Last modified: 2008/07/17 02:01 by 193.140.7.142
 
Imprint Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsTranslate