Translations of this page?:

ACH Template

Installation

How to install templates in general is described here. For this template there is only one additional configuration needed.

Upgrade

If you upgrade an older ACH template (from 20060516 or earlier to 20061017 or later), please heed the following renaming of some style.ini parameters!

old new
__text_1__ __text__
__text_2__ __text_alt__
__text_3__ __text_neu__
__background_1__ __background__
__background_2__ __background_alt__
__background_3__ __background_neu__
__border_1__ __border__
__border_2__ __border_alt__
__border_3__ __border_neu__

Description

The main aim of this template is to build the page structure differently, distinguishing between

  • actions per page (edit/show/create, discussion, old revisions, backlinks)
  • actions per site (link to syntax, recent changes, index, search)
  • actions per login (if not logged in: login form; if logged in: logout, update profile, subscribe changes, admin)

Its layout is a bit based on the wikimedia layout. Therefore I integrated the discussion functionality (into the actions per page). It simply lets you create a new discussion page per wiki page (in the top namespace “discussion”). A restriction is: It won't let you know if a discussion page already exists before you pushed the button.

Additional Configuration

Color Schemes

This template uses the css dispatcher of the latest DokuWiki release and its css replacement technique. Therefore a style.ini.dist lies in ./lib/tpl/ach/, which must be renamed to style.ini, waiting for your inventive color schemes.

The default scheme is just simple black and white. For examples how to change the style.ini parameters, there are three more color schemes (more or less ugly) distributed in ./lib/tpl/ach/, named style.ini.<name>.scheme. Applying one of those is simple: Just copy their content into style.ini – overwriting the old content.

If you apply a color scheme by renaming a file to style.ini, you probably have to touch it 1).

#> touch /path/to/style.ini

Most parameters of the style.ini handle the colors, but you can even add, remove or widen the section indenting.

export_xhtml

The following is optional and not necessarily needed.

If you want the template to look well in “export_xhtml mode”, you should change the following line in ./inc/actions.php

  ptln('<div class="dokuwiki export">');

to

  ptln('<div id="ach__content" class="dokuwiki export">');

That could be handled by the css alone as well, but that's too much “unwanted” work for me … ;-)

Will work with

DokuWiki versions 2006-03-05, 2006-03-09 and 2006-11-06

Tested Browsers

  • Firefox 2.0.0.1 :-)
  • Firefox 1.0.7 - 1.6a (Win) :-)
  • Opera 8.01 (Win) and Opera 7.11 (Win) :-)
  • IE
    • IE 7.0 (Win) works for me :-)
    • IE 6.0 (Win) has some design restrictions, I did not yet hunt peekaboo successfully down :-|
    • IE 5.0 (Win) has a few more design restrictions and bigger problems with widths :-/
  • Mozilla 1.3.1 has some design restrictions :-/
  • :!: Netscape Navigator 4.08 (Win) crashes! :-(
  • Safari 2.0.3 (Mac OS X) works fine ;-)

Screenshots

Default Color Scheme

Possible Alternative Color Schemes

To Do

  • testing, testing, testing, …
  • improve rtl.css
  • improve print.css
  • fix peekaboo bugs in IE

Version History

  • 2006-10-17
    • upgrade to latest DokuWiki version (mainly new mediamanager and renaming of style.ini parameters)
  • 2006-05-16
    • just a few bugfixes
  • 2006-03-05
    • changed all template-ids
    • updated changed CSS
    • added a few language files
    • fixed a small bug with the discussion buttons
  • 2006-02-12
    • updated changed CSS
    • changed logic of “site action” links a bit
  • 2006-01-06
    • updated changed CSS
  • 2005-11-29 (works with dokuwiki snapshots from 2005-11-28 and later)
    • updated style.ini due to changes in dokuwiki-2005-11-28
    • changed layout of footer and footnotes a bit
    • fixed bug which made links sometimes unclickable in TOC
    • added style.ini parameter for changing the headline color
  • 2005-11-19 (works with dokuwiki snapshots from 2005-10-31 until 2005-11-27)
    • print.css
    • changed layout of content headlines
    • added toolbar styles
    • fixed strange behaviour in media popup
  • 2005-11-13: first version

Comments and Questions

Hi, just for signal “bug” with the note plugin who cause large blank before the first note of a page. See comments for link to example page. Any idea why ? — Ze 2006-12-03 16:48

It is the “clear:both;” in the style.css of the note plugin. (Or the way my template is styled, depending on your viewing angle. ;-)) I think this bug will happen with most 2- or 3-column-layouts … Just delete the “clear:both;” line. It will work (nearly?) exactly like before. — Anika Henke 2006-12-04 23:45

The discussion-button is a form → it won't be googled. Maybe we could add a <link>? Johannes Buchner 2006-01-23 11:11

One reason why I made the discussion-button a button and not a link, is because I did not want discussion pages to be indexed by search engines. But you can either use a link instead of a button (search for “link instead of button” in the template's main.php) or use a google sitemap. — Anika Henke 2006-02-02 20:51

I am curious as to how I would change the dokuwiki logo you have at the top of the page. I would like to substitute my own images in there. Jeff Childs 2006-02-12 12:27

To change the logo you have to alter the line background:url(images/logo.png) no-repeat 35px 5px; in layout.css inside #mainbox{}. Exchanging the logo is simple, but to adjust the position of that image could be a bit tricky (depending on how different sized your image is). Just play around with those two values (35px and 5px) … — Anika Henke 2006-02-12 23:03

I find this skin very useful. I would suggets to add the hide sidebar /show sidebar functionality as per http://wikiwyg.org/wysi/. This would be a nice way to get the best of both worlds: navigation hints and screen usage.

I do not plan to add such a functionality. But you are free to change the source to your needs (and probably share it here). — Anika Henke 2006-05-15 23:53

I find your template rocks! Thanks a lot. However, I also would like to be able hide / show the sidebar… ;-)

I had to rename design.css to screen.css - otherwise it wasn't included by the css dispatcher.

Two icons are missing that are present in the default template in the current devel version: toc_hide.gif and toc_show.gif. I have one logfile full of these ;-)Werner Flamme 2007-04-24 11:03 CEST

I'm having a problem with the ACH mediamanager window in Opera 9.25. For some reason, clicking the submit button to upload a new file does absolutely nothing – it doesn't even show the usual cursor that displays when hovering over a link. However, using the shortcut key (Shift-ESC and then 's' in Opera) allows me to submit just fine. Another thing I've noticed is if I remove the left and right divs and just have both display in the media content div, the button works fine. However, I like ACH's split layout of the mediamanager better, so I'd really like to see it work properly in Opera. Thanks very much. — darksiren 2008-03-22 20:41 EDT

Live wikis using this template

1) on Windows just open and save
 
wiki/tpl/ach.txt · Last modified: 2008/03/23 01:47 by 74.56.83.9
 
Imprint Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsTranslate