Translations of this page?:

minima Template

Author:
Esther Brunner
LastUpdate:
2008-08-09
Compatible:
2006-11-06 and later
Screenshot:
screenshot: minima_s.jpg

Original info

Download FIXME broken minima.zip (360 KB)
I found the Minima template at Google Code. You may download it via SVN:

svn checkout http://minima-template.googlecode.com/svn/trunk/ minima-template-read-only


More information about the project can be found at Google Code, even if there's nothing new: http://code.google.com/p/minima-template/eModul 2008/05/31 16:47

This can now be downloaded as a zip or as a tgz. — Don Bowman 2009/04/03 23:18

Features

www.qwik.ch_media_minima_s.jpg

  • Header with customizable background graphic
  • Six predefined color schemes: blue, brown, grey, green, pink and purple.
  • Two column CSS layout centered in the window
  • Easier to read because of shorter lines and higher line heights
  • No section indention
  • Sidebar like sidebar template – thanks to Chris Smith!
  • Separation of page, site and user actions
    • Page actions (edit, revisions, backlinks, subscribe) are in button bar below the page
    • Site actions (index, search, recent changes) are in sidebar below sidebar content
    • User actions (login, profile, admin) are in sidebar below site actions
  • User without edit permission for a page won't see page actions button bar

Color Schemes

This template comes with six predefined color schemes: blue, brown, green, gray, pink and purple. The default scheme is blue. To activate another, use the configuration manager1) or copy and rename the color scheme of your choice manually to style.ini.

Customizing

You can easily replace the background graphic to give your wiki an individual look. The graphic has to be named header_<color>.jpg and should be placed in the images folder. The dimensions of the header has to be 610×89 pixels (narrow), 754×89 pixels (medium) or 987×89 pixels (wide).

Sidebar

Every namespace can have its own sidebar. Simply add a page called sidebar.txt2). If no sidebar is found in the current namespace, the sidebar of the parent namespace will be used. If there is no sidebar page in the namespace hierarchy, the index will be used.

For example you want a sidebar for namespace faq, you create a 'sidebar.txt' file in folder faq. Alternatively, you can just edit faq:sidebar through DokuWiki.

Tabs

This is a unique feature of this template. All pages of a namespace can have tabs on the top linking to other pages in the same namespace. This is useful to group pages that belong together and allows easy switching between them. To activate this feature, just create a page called tabs3) in your namespace and add a few internal links to pages in the same namespace. All pages of this namespace will now have these links as tab.

Wikis Using this Template

Changelog

  • 2006-11-19
    • Improved for DokuWiki 2006-11-06
    • Blog Plugin tweak is no longer necessary
    • 3 layout widths and 6 color schemes to choose from
    • Sidebar can be on the left or on the right
    • New tabs feature: just create internal links in <namespace>:tabs
    • Some smaller style enhancements
  • 2006-03-21
    • Fixed broken sidebar layout: sidebar headings must have clear:none!
  • 2006-03-10
    • Initial release

Discussion

Color problem

I got the message “Could not set correct style.ini file for your chosen color scheme.” in top of the display. I tried to change “theme color” in style.ini from _purple to other colors, but except for blue the error message persisted. —- Hjort16 2007-03-31

Read the footnotes well since it explains the solution for your problem. The Web-Server needs write-access for this to get to work…
additionally, if you use the multitemplate plugin, you'll need to add “global $DOKU_TPLINC;” in functions.php::tpl_checkColor(). If you don't, you will get the same error.

IE Bug

IE doesn't support the CSS2 :after property and display gets quite messed up when content spans past the page width. Not that I use IE, but I work for a company where standards compliance includes cross-browser compatibility. if not for this flaw this would be a perfect template.

CSS2 is a recognized web standard and supported by all modern browsers. The column layout simply won't work as it should without that :after property, sorry! — Esther Brunner 2006-11-19 09:49
Does it mean that there is NO way to use this template with Internet Explorer? A proper answer would save me long hours of tweaking… thank you!
I have been trying to fix the afterproperty with http://dean.edwards.name/IE7/ but without success. I do not like to say so, since I like Esthers template very much, but maybe http://www.chimeric.de/projects/dokuwiki/template/arctic may be an alternative for you, as far as I can see it is IE compatible. I do agree with Esther that IE CSS2 support sucks…

Sidebar ignores authentication

On DokuWikis with ACL on, users without access permissions still can see the full DokuWiki index in the sidebar.

I have a patch for that:
--- minima-original/tplfn_sidebar.php	2006-02-03 00:47:06.000000000 +0100
+++ minima/tplfn_sidebar.php	2006-08-10 17:09:56.076901315 +0200
@@ -56,8 +56,11 @@
 		print p_wiki_xhtml($ID,$REV,false);
 	}
 	else {
-        global $IDX;
-        html_index($IDX);
+        	global $IDX;
+		// Add an authentification check before displaying the index
+        	if (auth_quickaclcheck($IDX)) {
+			html_index($IDX);
+		}
 	}
 
 	// restore globals

Thierry Goubier 2007-07-12 10:33

But now, minima adds “1” to the right of the buttons at the end of a page, and at the end of the sidebar too? (Got worse with the latest version of DokuWiki)

Sidebar is shown when printing

There is an error in the last line of print.css:

#sidebar {display:none}

should be

.sidebar {display:none}

Is index and search are disabled then is still shows a bullet

If this bothers you, then it is fixed by changing in main.php around line 96 the code

<hr />
      <?php if (tpl_getConf('showsiteactions')){?>
        <ul>
          <li><div class="li"><?php tpl_actionlink('index')?></div></li>
          <li><div class="li"><?php tpl_actionlink('recent')?></div></li>
        </ul>
      <?php }?>

with

<?php if (tpl_actionlink('index') ||  tpl_actionlink('recent')) {?>
        <hr />
        <?php if (tpl_getConf('showsiteactions')){?>
          <ul>
            <li><div class="li"><?php tpl_actionlink('index')?></div></li>
            <li><div class="li"><?php tpl_actionlink('recent')?></div></li>
          </ul>
        <?php }?>
    <?php }?>

Martin Horvat 2008-1-15

Home Page

When you click on any namespace on the sidebar, the index of the namespace appears both on the sidebar and as the main content. This is redundant. Is it possible to change this so that the indexing of the namespace appears only in the sidebar and a home page for the particular namespace appears as the main content?

1) The webserver needs write access to the Mimima template directory for this to work!
2) The name of the file can be customized in configuration.
3) Can be customised in configuration.
 
template/minima.txt · Last modified: 2009/06/18 18:58 by 201.221.31.148
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsDarcsXRefTranslate