twikifilter
Drupal: TWikifilter module

TWiki Filter was a moment of motivation where I sought out to try to replicate TWiki's formatting.  This module adds two content filters: one that does basic TWiki formatting, and the other that does the more advanced stuff (tables, lists, etc...).  This should help when trying to move a site from TWiki -> Drupal.

This module is still in development, and does not have any official releases yet.  However the main functionality is working, and it is usable.

Examples:

  • —++ Heading
  • — HR
  • |table|table|
  • * bulleted lists
  • 1 numbered lists
  • basic formatting like bold, italic, bold italic, etc...
  • WikiWord support w/ Webs
  • [[URL][Description]]
  • [[Topic][Description]] -> Topic link

Not supported yet

  • [[Topic][Description]] -> Description
  • Table Header Sorting
  • Anchor Links
  • Definition Lists
  • TWiki Variables (%TOC%, %WEB%, %TOPIC%, %ATTACHURL%, %INCLUDE{"Topic"}, etc...)

Screenshots:

Download

Install

5.x and above:

  • Extract tarball into /path/to/drupal/sites/all/modules
  • Browse to http://my.drupal.com/admin/build/modules and enable the module.

4.7.x:

  • Extract tarball into /path/to/drupal/modules.
  • Browse to http://my.drupal.com/path/to/drupal/admin/modules, and enable the module.

All:

  • Add a new input format, select applicable TWikifilter filters.  You can find the input formats under "Site Configuration" -> "Input Formats".  Click "Configure" to the right of the particular input format you want to modify.
  • Enable the input format on a node and test it.
WikiWord:
  • Enable Taxonomy module.
  • Add required non-multiselect vocabulary "Webs".
  • Add terms for each web.
  • .

Documentation

  • WikiWords: WikiWords are any TWiki style WikiWord that exists where node->title = 'WikiWord'.  A page must exist with the title for the filter to linkify.
  • Aliases: Aliases can be created via the pathauto module.  I have my development site setup with Node path settings: [term-raw]/[title-raw].  Additionally, you can use the wikitools module to prohibit duplicate topics.

Issues

  • Garland theme – This theme does not display nested bulleted lists correctly.

Roadmap

  • Table Sorting : add javascript sorting.  This is different from twiki's table sorting, but more practical.
  • Cleanup code.
  • Release: give to the masses