Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-04-24 14:36:42

gemal
Member
From: Copenhagen, Denmark
Registered: 2007-01-09
Posts: 107
Website

Include image in my atom and rss feed

In my atom and rss feed I like to include image support in the top. Most feeds have this but textpattern doesn’t:

<image> <title>Mads Gemal</title> <url>http://mads.gemal.dk/pics/madsognina.jpg</url> <link>http://mads.gemal.dk/</link> </image>

is there a way to do this? Or will the next release of textpattern support this?

Offline

#2 2007-04-25 01:33:12

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Include image in my atom and rss feed

You need to modify rss.php and atom.php, similar technique to this:

$out[] = tag(
	tag('Mads Gemal', 'title').
	tag('http://mads.gemal.dk/pics/madsognina.jpg', 'url').
	tag('http://mads.gemal.dk/', 'link')
, 'image');

Offline

#3 2007-04-25 09:42:55

gemal
Member
From: Copenhagen, Denmark
Registered: 2007-01-09
Posts: 107
Website

Re: Include image in my atom and rss feed

Mary wrote:

You need to modify rss.php and atom.php, similar technique to this:

$out[] = tag(
	tag('Mads Gemal', 'title').
	tag('http://mads.gemal.dk/pics/madsognina.jpg', 'url').
	tag('http://mads.gemal.dk/', 'link')
, 'image');

Is this a bug/feature that should be filed? Perhaps this could be fixed it the top part of the feed had a callback

Offline

#4 2007-04-26 03:36:52

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Include image in my atom and rss feed

Its not a bug, but yes a reasonable feature request.

Offline

Board footer

Powered by FluxBB