This web site uses drupal 8, the drupal pages refer to drupal 7. Examples will not work, guest login is not enabled.


Do not use simplewiki, but use markdown, optionally in combination with bueditor and markdowneditor.



Simplewiki is a wiki-like editor, nice for creating technical pages with automatic table-of-contents.

Installation: install and enable the module simplewiki as usual from

To avoid errors with some versions of php5, you need to add a line to sites/all/modules/simplewiki/SimpleWiki.php:

Around line 1526:


class SimpleWikiDocNode
    # A node in the document tree.
    public $children;
    public $parent;
    public $kind;

add a line:

    public $content;

It is probably wise to install and enable better formats too.

  • admin -> configure -> text formats: create a new text format, for example: "wikiformat", and choose "SimpleWiki" as filter. Under "filter settings" you can enabe automatic toc generation, but in general it is better to let the author choose if a TOC is desirable. See below under <<quicktoc>>.
  • admin -> structure -> content types: create a new content type. If you have installed "better formats", tick under "Text Processing" "Filtered text (user selects text format)". Under "TEXT FORMATS", tick "limit allowed text formats" and allow only "wikiformat".
  • To show the little manual when editing: admin -> people -> permissions -> better formats -> show format tip

Some css:

/* put toc on the right side, and give it some color */
#quicktoc-platform {
   background: #ecffdf;
   float: right;
   border: 1px solid #ccc;
   border-radius: 4px;
/* disable header */
#quicktoc-header {
   display: none;
/* some formatting for preformatted text (source listings etc) */
pre {
   background: #f5f5f5;
   border: 1px solid #ccc;
   border-radius: 4px;
   padding: 9.5px;

Example input with <<quicktoc>>:

= BASH =
== description ==
Bash  is  an  sh-compatible  command language interpreter that executes
commands read from the standard input or from a file.  Bash also incorporates
useful features from the Korn and C shells (ksh and csh).
== options ==
All  of  the  single-character shell options documented in the description of the set builtin

command can be used as options when  the  shell
is invoked.  In addition, bash interprets the following options when it
is invoked: