[pmwiki-users] RSS feed with text and images?
Derek Lerner
lernaway at gmail.com
Thu Nov 15 14:30:11 CST 2007
Hi all,
I am attempting to set up a RSS feed using "WebFeeds" ( /Category/RSS?
action=rss ) that feeds pages marked with [[!(RSS)]] and have a few
questions/problems I am trying to work out.
My main goal is to create a feed that has a description as well as
associated images. This could be the full content of a page or an
edited down version of the content, whatever is easiest to accomplish
would be fine by me. An example of how I would like the feed to be
formatted can be viewed here ( http://www.creativereview.co.uk/
crblog/feed/ ). Basically a simple blog type of feed that I will be
running through FeedBurner once it's working correctly.
Right now I am only able to get page titles to show up as links in
the feed with no description or images via Category/RSS?action=rss.
However I am able to get the Category/RSS page to present 200 lines
of the content along with the images using fmt=#teasers. My guess is
that I need to modify "feeds.php" but am not sure?
------------------------------------------------------------------------
this could be the issue causing descriptions to not work correctly?
{$description} is not displaying (:description text:)
where is this defined?
i think I am missing some code in "config.php" or is there a specific
page that this is defined in?
------------------------------------------------------------------------
in "Category.RSS" I am currently using...
(:pagelist order=ctime link=Category.RSS group=-PmWiki,-Site
fmt=#teasers:)
------------------------------------------------------------------------
in "Site.PageListTemplates" I am using
!!fmt=#teasers
Include the first five lines of every page preceded by an edit link
for that page
[[#teasers]]
%right%[-[[{=$FullName}|↓ Read More]]-]
(:include {=$FullName} lines=200:)
*(:if ! equal {>$Group}:)
(:if:)
[[#teasersend]]
------------------------------------------------------------------------
in "config.php" for the feed I am using...
if ($action == 'rss') {
include_once("$FarmD/scripts/feeds.php");
}
$FeedFmt['rss']['item']['title'] = '{$Title}';
$FeedFmt['rss']['item']['description'] = '{$Description}';
------------------------------------------------------------------------
Any help or suggestions would be greatly appreciated.
Kind regards,
Derek
More information about the pmwiki-users
mailing list