DokuWiki

It's better when it's simple

User Tools

Site Tools


template:flat

flat Template

Compatible with DokuWiki

  • 2020-07-29 "Hogfather" yes
  • 2018-04-22 "Greebo" unknown
  • 2017-02-19 "Frusterick Manners" unknown
  • 2016-06-26 "Elenor Of Tsort" unknown

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: 2021-03-27 13:26 by Aleksandr