PEAR Wiki filters

Events happening in the community are now at Drupal community events on www.drupal.org.
rötzi's picture

Last week I released a module which uses PEARs Text Wiki packages for formatting. This lets you choose one from several different input formats, my favorite being the well known Mediawiki syntax (not because I like the syntax particularly, but because a lot of people know the syntax from Wikipedia).

The advantage of this module is that it lets you choose among different Wiki formats, but the problem with this module is that the implementation of the parsers and renders depend on PEAR. The parsers don't get udpated very often, and thus you can't count that features which are not implemented yet will be available very soon...

A feature which I implemented today is integration of the filter with freelinking. This allows you to write Wikilinks and have the options of freelinking available for wiki links: searching for title or creating a new page with the wikilink title.

But until I figured out the Drupal release system the best way to obtain the current version with freelinking integration is CVS...

Comments

markdown

moshe weitzman's picture

this site currently uses markdown and freelinking. i think thats working well. i'm interested in other opinions though.

Most excellent - your temp

harriska2's picture

Most excellent - your temp site is great. Just a couple questions:

  1. I assume all this can be locked down for authenticated people only - your site allows anonymous.

  2. I created a test page but it was not added to Wiki Pages link on the left. Is the wiki page set up with CCK types? If so, should the menu be able to pick up new pages thru a view? Did you setup your test site so that the "Wiki Pages" link only lists pages with a freelink of "mediawiki"?

  3. In setting up the Text_Wiki_Mediawiki and Text_Wiki packages from pear - do you have any ideas as to where to get documentation on where to put them, what to name the directories, and what to do with the package.xml files? I've looked twice on pear.net's site and couldn't find it.

    -- Nevermind - I thought you had to download the two packages and get the Pear Text stuff via CVS. I ended up installing your module first. Then going into the module directory and simply grabbing a CVS copy of the Text directory with mediawiki via your method:
    cvs -d :pserver:cvsread@cvs.php.net:/repository checkout -d Text pear/Text_Wiki/Text

I'm not sure where I had to point to the PEAR install per your directions:

On the
input format configuration page, set the path to the PEAR installation

But without that step it seems to work so far.

thanks

rötzi's picture
  1. Yes. I just didn't want people to register, so I allowed editing for Anonymous.

  2. Yes, the 'Wiki Pages' uses the freelinking page. Thats why your newly created page via 'Create Page' didn't show up. The wiki page does not use cck, just the normal node module, but a view could be used to show all wiki pages. I was just to lazy to install views ;)

  3. The installation instructions are not really clear. I didn't find (or rather didn't took) the time to write a decent readme...

Thanks for your great work,

tomamic@drupal.org's picture

Thanks for your great work, Rötzi.

As author of the PEAR Creole module, I'm happy to see it integrated into Drupal through your module. Actually Drupal was the main motivation for me to code it. I had integrated Text_Wiki into Drupal through a simple custom module myself, but it was a fast hack around the (old?) wiki module more than a generic solution. Your own is much (!) better. I'm already using it. Thanks for providing it to the community!

Creole support in Drupal

amuzulo's picture

As a leader of the WikiCreole initiative, I am very happy to hear of Drupal's support for Creole. I have added Drupal to the list of engines supporting Creole. If someone could follow that link and add more details about how to use Drupal with Creole, I would greatly appreciate it.

Thanks!
Chuck

Wiki

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week