PM Wiki Cookbook Realm

Log In

Main Page

Linux Page

Photo Page

Code Page

Alternate Feeds Page

Recipe Index

This PmWiKi recipe is for a method to create a blog feed from a group of pages. I adapted code from the kind-of-blog recipe It allows me to support blog feed from my existing PmWiki installation.

Files: Alternate Feeds 0.3a
Requirements: PHP, PmWiki


Wiki Markup

The current markup for a blogentry is blend of the original recipe with hidden page variables added for additional RSS Item markup:

(:blogentry :)
(:Title Entry Title:)
(:TimeStamp: 2007-06-15 18:00:)
(:PermaLink: blog.20070615:)
My Blog Entry.
(:blogentryend:)
<item>
<title>Entry Title</title>\n".
<link>http://yoursite.com/index.php/blog.20070612</link>
<pubdate>2007-06-15 18:00</pubdate>
<description><p>My Blog Entry</p></description>
</item>

This recipe variation adds a few variables, but kept the standard $Title PTV and its assignment method. The parser will processes each (:blogentry:) block found on date-formated pages (ie 20070615) in a group. It will check for each variable and add each to the <item> portion of the feed. The parser creates the header from an array located in script.

modified: October 22, 2007, at 07:38 PM