Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[plugin] [ORPHAN] csb_feed_image - insert article image in feeds
This simple plugin adds the article image (if one is specified) to an RSS or Atom feed.
You can also change the code slightly to use the thumbnail instead of the full size image, or if you want the image before or after the body text.
csb_feed_image supports multiple images with upm_image.
Requires Textpattern 4.0.4 or later.
—
See wet_feed_image for a maintained fork.
Last edited by wet (2025-03-12 14:19:02)
Offline
#2 2008-02-05 01:22:58
- hidalgo
- Member
- From: Australia
- Registered: 2008-02-05
- Posts: 86
Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds
Thanks for this great plugin! It’s indispensable for any photography related site.
On some of my articles I use multiple article-images which works great with plugins like <txp:upm_article_image />, however breaks this plugin. I’m aware this isn’t standard TXP functionality, but it would be great if there was a way to get multiple article-images to work with this plugin. Or maybe just show the first image even?
I’m thinking this isn’t as easy as it sounds.
Offline
Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds
Well, that should’t be too hard. I will try to make a new version soon.
Nice website by the way. :)
Offline
#4 2008-02-12 23:34:24
- hidalgo
- Member
- From: Australia
- Registered: 2008-02-05
- Posts: 86
Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds
Thank you Christian, that’s great! :)
Offline
Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds
Allright, the new version checks if you have upm_image installed, and then uses upm_article_image instead of article_image to support more than one image per article.
Offline
#6 2008-02-14 12:45:12
- hidalgo
- Member
- From: Australia
- Registered: 2008-02-05
- Posts: 86
Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds
Too clever! Many thanks for this, I would never have figured it out.
I’ve just played with it a little and worked out how to use tags from upm_article_image, such as limit and type – I’m very impressed :)
Offline
Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds
Hej Christian,
For some reason, even after changing the line to
define(USE_THUMBNAIL, true);
I still get full sized images. I use atom and upm_image, if that helps with anything.
great plugin!
~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~
Offline
Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds
Hmm, that’s weird. I tried changing it to true and it worked for me. Maybe there’s some problem with cache or something?
Offline
#9 2008-02-25 01:00:48
- hidalgo
- Member
- From: Australia
- Registered: 2008-02-05
- Posts: 86
Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds
I found when using upm_image I had to change ‘thumbnail’ => USE_THUMBNAIL to ‘type’ => ‘thumbnail’ (the full image would be ‘type’ => ‘image’)
Last edited by hidalgo (2008-02-25 01:01:36)
Offline
Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds
Ah, sorry, i fix will come soon…
Edit: New version 0.3 is up now.
Last edited by csandberg (2008-02-25 01:09:37)
Offline
#11 2008-02-25 01:13:00
- hidalgo
- Member
- From: Australia
- Registered: 2008-02-05
- Posts: 86
Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds
I also added a define(LIMIT, #); so I could limit the number of article images shown, in my case I just wanted the first article image.
Offline
Re: [plugin] [ORPHAN] csb_feed_image - insert article image in feeds
thank you! that worked! Hidalgo, how exactly did you define the limit? I would also be interesed in that.
~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~
Offline