Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Customize Textpattern's Atom and RSS feeds output

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.textile
Octocat-spinner-32 manifest.xml
Octocat-spinner-32 rah_custom_feed.php
README.textile

rah_custom_feed

Customize the output of your feeds with Textpattern tags, like any other form.

Requirements

  • Textpattern v4.2.0 or newer.
  • PHP5

Usage

The plugin uses a Form partial called rah_feed_body customize feeds output. The automatic setup should have created it, but if it didn’t, you can create the form as normal. This form will hold your RSS and Atom feed’s item body contents. You can use Textpattern tags, including individual article tags, as you would with a normal page template.

Example

A form partial named rah_feed_body can be used to customize feed items’ output. For example, the form markup could look something like this:

<txp:excerpt />
<p><txp:permlink>Read more...</txp:permlink></p>

Snippet above outputs an excerpt and a read more link.

Changelog

Version 0.2 – 2012/07/12

  • Improved help file.
  • Use plugin-lifecycle callbacks to remove the added form during uninstall.
  • Now requires PHP5 or newer.

Version 0.1 – 2008/01/22

  • Initial release.
Something went wrong with that request. Please try again.