Matt Gemmell

My new book CHANGER is out now!

An action-adventure novel — book 1 in the KESTREL series.

★★★★★ — Amazon

Wiki integration for Thistle/PHPosxom

Development 1 min read

I've created a Wikify module for <a href="http://www.scotlandsoftware.com/blog/index.php/dev/thistle">Thistle</a> 
(should also work with <a href="http://www.celsius1414.com/phposxom/">PHPosxom</a>), which 
automatically links WikiWords to appropriate pages of a specified wiki. You're seeing it in action 
now, in the content of this post (the links with the little black "w" icon before them). 



You can <a href="http://www.scotlandsoftware.com/ftp/php/wikify_module.tgz">download the module here</a>.
&nbsp;

Features

  • Wikify will automatically ignore WikiWords which are already linked, or which occur inside an HTML tag (such as those which are part of a hyperlink's URL, or an image's ALT text).
     
  • You can prepend a WikiWord with <!--verbatim--> to prevent it being linked, LikeThisOne.
     
  • If a WikiWord is immediately preceded by -, =, /, ? or !, it will not be linked.
&nbsp;

Limitations

  • It doesn't attempt to determine if a page already exists in the wiki (which doesn't usually matter, since attempting to visit a non-existent page in most wikis will simply let you create that page). You can modify the code to do this for your own wiki if desired.
&nbsp;



As always, do enjoy.