DokuWiki

It's better when it's simple

User Tools

Site Tools


template:flat

flat Template

Compatible with DokuWiki

  • 2024-02-06 "Kaos" unknown
  • 2023-04-04 "Jack Jackrum" unknown
  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" yes

template Wordpress template for DokuWiki

Last updated on
2021-03-25
Requires
changes, nspages

Tagged with cms, responsive, wordpress

You can preview this sample on my demo website

My first Wordpress template conversion for Dokuwiki. Responsible design for smartphones.

Changes:

  • CSS fix
  • Jquery update for menu in smartphone and tablet resolution

Download and Install

Use the following URL to download this template:

Refer to template on how to install and use templates in Dokuwiki.

Install

First install nspages and changes plugins and enable HTML embended code (see htmlok). I use them in sidebar. If not install Flat not work properly.

Create 3 posts (as usual in dokuwiki) with theses contents and setup Flat in configuration page:

Post 1: Use this as sidebar post (use this post in sidebar setting in Basic)

<html>
 
<li class="fa fa-home menu-item menu-item-type-custom">
    <a href="?id=start">Home</a>
</li>
 
<li class="fa fa-star menu-item menu-item-type-custom">
    <a href="?id=sitographie">Sitographie</a>
</li>
 
<li class="fa fa-code menu-item menu-item-type-custom">
  <a href="?id=projectDev">Projets developpements</a>
</li>
 
<li class="fa fa-envelope menu-item menu-item-type-post_type menu-item-object-page">
  <a href="?id=contact">Contact</a>
</li>
 
</html>

to change icon (fa-xxxx): https://fontawesome.com/icons?d=gallery&p=2&q=apple

Post 2: Use this one as recent posts (use this post in topsidebar in flat parameter template)

<nspages -h1 -textPages="" -simpleList -nbItemsMax=5 -r -sortByDate -reverse -exclude -exclude:sidebar >

Post 3: Use this one as categories (use this post in bottomsidebar in flat parameter template)

<nspages -simpleList -subns -nopages -textNS="">

For nspages and changes please contact or see their docs on their plugins pages.

Note:

If you want to display all post for a namespace use pagequery plugin and for example in start post put this

{{pagequery>@systeme;fulltext;sort=cyear,cmonth;group;spelldate;proper;snippet=quoted,3,l3;cols=2;hidestart}}

You can preview this sample on my demo website

template/flat.txt · Last modified: 2022-07-30 00:18 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki