Table of Contents

feedmod plugin

feedmod plugin by Gina Häußge, Michael Klier
Action plugin which modifies parts of the full html feed to make it suitable for blogging with DokuWiki

Last updated on 2008-05-24. Provides Action.
Compatible with DokuWiki 2008-05-05.

Tagged with blog, blogging, blogsuite, feed.

Download plugin-feedmod.tgz

Description

This Action Plugin modifies the content of DokuWiki's full html feed to make it suitable for blogging purposes. It removes the first headline from the feed item body and sets it as feed item title. It also detects if the page uses the discussion plugin and adds a link to the discussion section after the feed item. It has also support for a custom footer template which gets added to each feed item. This can be used to add links to social bookmarking services for example (see customization).

Note: The plugin modifies the feed only if two conditions are set, namely when the content is set to html and linkto is set to direct (see syndication).

Installation

Download the archive and unpack it into <dokuwiki>/lib/plugins.

The plugin is also available via darcs.

% cd <dokuwiki>/lib/plugins
% darcs get http://chimeric.de/_dev/darcs/dokuwiki/plugins/feedmod

Customization

The plugin has support for a custom footer template which gets added to every feed item. To get it working you have to create a file named _footer.txt below the plugin directory. The plugin contains a _footer.txt.dist file which contains some examples. The following replacement patterns can be used in this file.

@URL@ Full url to the feed item
@PAGE@ Page id of the feed item
@TITLE@ Title (first headline) of the feed item
@AUTHOR@ Author of the feed item (wiki page)

Here's a short example for social bookmarking services:

<a href="http://digg.com/submit?phase=2&url=@URL@" title="Digg this post">Digg this post</a> &middot;
<a href="http://www.stumbleupon.com/submit?url=@URL@" title="Digg this post">Stumble it</a> &middot;
<a href="http://del.icio.us/post/?url=@URL@" title="Save to del.icio.us">Save to del.icio.us</a>

Resources

ToDo

Feature Requests

You`re missing something? Add it here!

Is it possible to make this plugin to handle DRAFTs properly also in content=abstract mode? — Martin Plicka 2008/09/07 18:29
Hmmm, I am actually wondering if it wouldn't make more sense to add that functionality directly to the blog plugin (the draft handling for feeds) because it's obviously of no use to have them in any feed. — Michael Klier 2008/09/08 21:46
Very good idea. As i see blog's draft component, it seems to be very easy. I ought to take a look at code before :-)Martin Plicka 2008/09/08 22:15

Bugs

You`ve found a bug? Add it here!