DokuWiki Theme: New Day

** Please note that a template update is available. Find the latest version here **

New Day ScreenshotI just finished creating a new DokuWiki template and decided I like it enough to make it publicly available.

The template is based on the battlehorse theme. I added a configurable top menu that understands both wiki and external links. The menu can be configured in the configuration settings; links can be added in a comma separated fashion and text labels can be added to the link with a pipe. Example:

http://blog.chirripo.nl|Blog,http://http://www.chirripo.nl|Chirripo,some_wiki_page, etc

Furthermore, the template incorporates CSS for the picker and Administrator overview that were introduced in dokuwiki-2009-12-25c “Lemming”.

Download discontinued due to newer version

50 Responses to “DokuWiki Theme: New Day”

  1. Mike says:

    Excellent template. Well done! It totally transform the view of Dokuwiki. Thanks.

  2. Matt says:

    Hi – i’m trying to tweak a problem which just came up when i updated my newday skin to the latest and greatest (it’s a template btw).

    I have my sitemap along with indexmenu plugin, which works, sort of. I have a couple of issues. I’m just trying to get this first one resolved today.

    Previously, when i clicked on a namespace, the namespace unfolded like a horizontal tree. Not it just expands folders in a straight verticle line, which makes it very confusing (everything appears to be on the same level, regardless of depth of directories).

    I’m segwaying from an old wiki system where everyone was used to a links based navigational system, so i’m trying to get this to work, for those people who’s old habits die hard :)

    Anyone else experience this, or do you have any ideas\suggestions Louis?

    Once again, thanks for the work you put into Newday, it’s really really nice.

    BTW – my other issue with this is listed here, if anyone has any thoughts or ideas on that as well…

    http://forum.dokuwiki.org/post/22606

    • Matt says:

      Can anyone help me out on the site index not expanding out like a tree, and rather it lays flat vertically (expands up and down, but not out)? It is very confusing visually.

      There are already grumblings….people are used to browsing instead of searching, and the searching aspect will take them some time to get used to.

      • Matt says:

        I found this was due to the new sidebar.css – i commented this out in style.ini, and it must default to the older method, because it now expands outward, instead of just down.

  3. Matt says:

    Louis, is there a way to move or enlarge the search button, or embed it via some code into a wiki page? Right now i have indexmenu on the left with your newday theme, which is great, but i’m having an issue where the index i have, displays a second index on the right, and i’d rather make the SEARCH box larger, and more attractive for users to use.

    Otherwise they are going to get confused on this index browsing feature. I’d like to make the search box larger, move it into upper left, and even embed it right into my start page if possible. Any comments you can lend are much appreciated!

    • Louis says:

      That’s possible: find the div.searchform in the template css and set float to left. (Tip: the plugin Firebug for Firefox is a great help with this sort of stuff)

      • Matt says:

        Thanks – got it. I had a programmer help me create two new classes and enlarge the box as well, which should make it more attractive for my wiki users :)

  4. saadoun says:

    Hi,
    This is really a great template but I have some issues when I use IE8.
    sublevels of the topmenu don’t appear on the bottom but on the right of their level1 menu, and are hided by other level1 menus. The topbar is also on the left and isn’t centered.
    Some changes that I made on the CSS (margins,…) appear on firefox and chrome but not on IE8.
    Does someone else have these problems ?
    Thanks

  5. Seiman says:

    Hello,

    First, I will thank you for this greate template. Its flat, simple and straight and not overloaded!!!

    I have a Problem with the Index Menu of the Sidebar!
    If i will open one of the include site in the namespace, the hole path will be closed and so i have to reopen the hole path again, to get in to the next site of the namespace!

    It is able to make the Index static, so that i can always see the Path where i have gone?

    I hope you will understand my Problem and you can help me!

    Thanks a lot!
    Seiman

    • Louis says:

      I think I understand your problem, but this is just the way Dokuwiki works. If you’d like to have it changed you should ask the Dokuwiki developers. My template can’t be of assistance here because the index tree isn’t completed until you’ve actually clicked a namespace. The suggestions I can give you are:

      * Open pages in a new browser tab so the orginal page stays in tact
      * Make use of the breadcrumbs/Trace to see which pages you’ve visited

      • Seiman says:

        Thanks for your fast Reply,

        I solved my Problem by installing the indexmenu plugin.
        Now the tree opens itself automatically at the current page namespace.
        Very useful for Navigation!

        greets seiman

        • Matt says:

          Seiman,

          I’m running into the same problem you were – were you able to get newday theme and indexmenu to play well together? You used indexmenu (2) I take it? Can you please comment on this?

          New Day is an excellent look and feel, but i also have need of some of the enhancements made by the indexmenu plugin as well.

          When i click on the nice index menu on the left hand sidebar, made by New Day, it just flashes, and doesn’t show me the tree. Any tips or tricks on how to make the two play together the best? So incredibly frustrating, i’m ALMOST there…and there are some nice plugins and enhancements made by people, but i can’t quite get this to work the way it needs to to be functional to a novice employee to navigate and make a page of their own.

          Thanks!

          • Matt says:

            After looking into this further, i think the index menu “flashing” is because there is something messed up with my indexes. I’ve tried to kick off a manual indexing process, but to no avail. So far i’ve found a “searchindex” plugin, and saw that link under “other plugins” under the admin tool, however clicking that seems to do nothing except offer a description, i see no button as described by other posters. I’ve also tried going to bin\indexer.php which just puts up a #!User something or other up on the screen, and that’s it. How do i kick off a manual index? I’ve restarted web service several times, so i don’t think any amount of waiting will amount to anything.

  6. Gus says:

    Hi, excellent tpl! I’ve applied some little modifications to match our needs, but from the start, it seems CSS ain’t loading with Firefox 3.6.3 but everithing works fine with other browsers. Can you help me find where the problem might be?
    Thx in advance!

    • Louis says:

      I’m running Firefox 3.6.3 myself and the stylesheets are loading just fine. I’m not sure what could be causing your problems, but the first thing I’d take a look at is the file permissions on the various template files.

  7. Omar says:

    Great theme. I have a question, is it possible to hide the name spaces available to unlogged users and show it only to registered?

    Omar

    • Louis says:

      Hm, I don’t know. Should this be something supported specifically by a template? I guess you could do something like that in you ACL settings if I understand correctly what you want. Have a look at this page: acl [DokuWiki]

  8. Ivan says:

    Hi Louis,

    I love your template, clean and functional and looks nice. However, I can’t figure out how to edit the default root sidebar. For instance, I do not want it to display Index section at all (and I can see most sites using your template has it removed as well) but there is no such setting in configuration? I can edit User Actions just fine but what about the root sidebar?

    • Louis says:

      Hi, thank you for the compliments. There sort of is a setting for that. If you log in as administrator and go to configuration settings, you’ll find the template settings way at the bottom. You can set the `default status for wiki actions´ to closed. However, this’ll not only remove the `index´ button, but also your `recent settings´ and `admin´ buttons from the menu, which might be inconvenient.

      If you’re looking to exclusively remove the index button, you can disable it in the code. Go to the template folder /YOUR/DOKUWIKI/INSTALLATION/lib/tpl/newday/ and find the main.php file. You can remove the code entirely but I’d suggest to make the following changes so you can roll back if you want. In line 180, 181 and 182 the index button is defined as:


      < ?php if (is_action_enabled('index')) { ?>
      <div class="smallpadding">< ?php tpl_actionlink('index')?></div></td></tr><tr><td>
      < ?php } ?>

      Change it as follows:


      < ?php // if (is_action_enabled('index')) { ?>
      < ?php if (false) { ?>
      <div class="smallpadding">< ?php tpl_actionlink('index')?></div></td></tr><tr><td>
      < ?php } ?>

      So, in the first line, you comment out the original code and in the second you set it to never show. Roll back by removing < ?php if (false) { and the two slashes in the first line.

      Note! There is a new version of the template here. The lines to change for that version are 188, 189 and 190.
      I was already considering individual button settings for the next version of the template, but I'm quite sure now ;)

  9. Ianka says:

    Hello,
    Very nice template=) Thank you.
    But I have found some errors.
    1. By operation wiki with several languages (with translation plugin for exaple) this template does not switch languages of names of actions in sidebar according to current language.
    It is corrected so:
    in main.php file replace tpl_getConf(‘btl_language’) on $conf['lang']. It turns out:
    @require_once(dirname(__FILE__).’/lang/’.$conf['lang'].’/settings.php’);
    (In general not clearly what for the option ‘btl_language’ is necessary)
    2. Dead picture in the bottom of page.
    It is corrected so:
    in main.php file replace

    on
    <img style="float:right" class="footer_border" src="/images/footer_image_right.png”>

    Also, I have written a language file for Russian http://fdtd.kintechlab.com/tests/settings.txt
    My Wiki with your template is here: http://fdtd.kintechlab.com/doku_ru/

    • Louis says:

      Hi,

      Thank you for your contributions! Also, your site looks very nice :)
      About issue 1, your site will break if you set your default wiki language to something that is not supported by the template, so I guess the logic should test for the presence of a template translation and fall back to the language configuration setting of the template (see bottom of your admin configuration page, that’s what the btl_language is for) if there isn’t any. Thanks for bringing it to my attention, I’ll fix it in the next version. That’ll contain your translations as well.

  10. JPh Thierry says:

    Hi,

    Wonderful template: nice looking, readable, easy to customize… I had to customize a few things:

    - French language file
    - css and main.php modifications to include the ODT plugin

    Have you an email address I could use to send you those files?

    Jean-Philippe

  11. Temir says:

    Hello,
    I can’t download this template (404 error). Thanks

  12. Andy says:

    Hi,

    Are we able to add more languages than the ones that are automatically available. I need German and I can´t seem to select it…I have created the “de” folder with the necessary translated file (anybody need it by the way?) but I can´t select it from the menu..any tips? Thanks..

    • Louis says:

      Yep that’s possible, you’ll need to add your language directory to the lib/tpl/newday/lang/ folder, but I guess you had already found that. Be aware that there are two language settings: One for the wiki and one for the template (same page, but at the bottom under Template Settings). You should be able to enable your translation with the last.

      I’ll send you an e-mail requesting the language files. I’d like to include them in the next version. Thanks!

      • Andy says:

        Thanks….I did that already, but although I now have 4 language folders (en, nl, it,de) I still only have the three standard languages (en,nl,it) to choose from in the template configuration section…I already selected “de” in the basic configuration.

        Language file on its way to you..Thanks again..

        • Louis says:

          Right, I forgot. You also need to edit the metadata.php file in the conf directory. Change

          $meta['btl_language'] = array(‘multichoice’, ‘_choices’ => array(‘en’,'nl’,'it’));

          to

          $meta['btl_language'] = array(‘multichoice’, ‘_choices’ => array(‘en’,'nl’,'it’,'de’));

  13. Thomas F says:

    Newbie question – I can’t find any login button after switching to your very nice theme…feeling somewhat stupid here :-)

    What am I missing?

    Brgds Thomas F

    • Louis says:

      Well, it’s not a stupid question. I had to search for it in the battleshorse theme as well, and I keep thinking everyone else also has this problem (which isn’t true by the way, see posts below).

      The solution should be:
      1) Say your wiki is on http://www.yourwiki.org, go to: http://www.yourwiki.org/doku.php?do=login
      2) Log in and go to the configuration settings in the admin section and find the template settings (way at the bottom).
      3) Set the default status for user actions to open and save your changes.
      4) Voilá

      Let me know if it works.

      I’ll change the default settings in the next version by the way; it didn’t occur to me any sooner…doh.

      • Thomas says:

        Works beautifully! Thanks a million! Now I also learned where templates are configured. Thanks again, your template is just perfect for our site!

        Brgds Thomas F
        Stockholm, Sweden

  14. Thadeu Penna says:

    Nice template! Congratulations and thank you for this amazing job. I have a few glitches.

    Unfortunately the menu does not work with farm plugin. The buttons direct to the farmer, that is where the template is installed rather than the direction inside the animal. I can circumvent it by putting the whole URL in the menu.

    I confirm the editor toolbar bug as NoVirS, using both Firefox 3.6 and Chromium in Linux. I tried playing with the JavaScripts options but it did not fix the toolbar.

    • Louis says:

      Thank you for your input. I’m currently looking into the Simple (http://www.dokuwiki.org/template:simple) template CSS menu. I agree with Kaleb that it could provide a better and more flexible topmenu. I’m curious to know how the Simple template menu performs in a Farming environment.

      I still can’t pinpoint what is causing the toolbar bug. Do you or NoVirS have plugins installed that add buttons to the toolbar?

  15. NoVirS says:

    It’s my fault. Line 279# like this :

    And, when i clicked ‘edit page’, the edit box have not tools button like “Bold”\”Italic”\etc. Only have a link to media manager.

  16. Louis says:

    That’s weird, ’cause my main.php only has 290 lines. But there’s probably some code overhead anyway since this was based on another template.

    Not sure what you mean by ‘editor’s toolbar’, but like I commented before, have a look at your template configuration settings to enable the admin options in your sidebar: http://blog.chirripo.nl/?p=4&cpage=1#comment-3

  17. NoVirS says:

    thks for work. Sorry for my poor english.
    First, main.php line# 379 is unnecessary ((
    ))

    Second, the editor’s toolbar can’t work?

  18. Kaleb says:

    First off, I think it’s a bad idea to have the wiki header links set via the AdminCP. It doesn’t allow for translations, different link sets for different namespaces, and stuff like that.

    I love the drop down CSS menus in the Simple template. You should look at that.

  19. Termiter says:

    It was quick service. :c) Thank you!

  20. Louis says:

    Jep, now I understand. And you’re right at that, the sidebar wasn’t working. I just uploaded a new version (20100309) with working sidebar.

  21. Termiter says:

    Addition: I see blue sidebar like on upper picture. But I need to see my own sidebar on page “sidebar”.

  22. Termiter says:

    Thank you for replay. I tried set all settings to open, but without success. When i use any other templates with sidebar, sidebar is on screen. Plugin sidebarng works too.
    Page sidebar is ok, settings are ok. Are you sure, that sidebar on your template works? :c)
    Your template is best, but it is blocking issue for me. Thank you for your time.

  23. Louis says:

    Termiter, thanks for using the template :)

    I’m not sure what is causing your problems. You could try having a look at the template configuration settings and see if at least one of the ‘default status’ options is set to ‘open’ as opposed to ‘closed’. With all options set to closed, nothing will show up in you menu.

  24. Termiter says:

    Hallo,
    I have problem with sidebar. Page “sidebar” in root doesn’t display anywhere. If I switch to battlehorse theme, sidebar works well. Any suggestions, please?
    I have some problem with 4 sites, but on same hosting.
    Thanks
    Michal

Leave a Reply