PM Wiki Cookbook Realm

Log In

Main Page

Linux Page

Photo Page

Code Page

Show Post Page

Recipe Index

This PmWiKi recipe is for a method to create a blog display from a group of pages. I modified existing code from the kind-of-blog recipe. It allows me to show only certain portions of a page within markup block.

Files: Show Post 0.2a
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. See Alternate Feeds for more details.

Markup blocks are then parsed with a template page to create the final output with this directive.

(:blocklist count=## fmt=page.template group=group:)

The template markup currently only allows for the following values: $Title, $TimeStamp, and $PermaLink.

Sample Block Template

%right% {$pubdate}

%right% [[{$link}|Link]] | [[{$link}Comments | Comments]]

!!! {$title}

{$BLOCK}

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