-
- 129 Posts
Hi splittingred,
I have adapted the getFeed snippet with a couple of additions for a project I am in the middle of.
This adds a couple of parameters:
1) imageField - this tells the snippet that it should find the first image src within a specific field of the rss feed and adds a new element to the item array "image" containing the source
For RSS feeds with an image embedded in the content, this allows me to grab the image and put it exactly where I want in the output, put into a [[+image]] placeholder.
2) toPlaceholders - same as with getResources, this takes a string parameter, then outputs each chunk to a placeholder called $toPlaceholders.$idx
I have attached it here, if there is any demand for either of these, then you may want to add them into your addon.
It is a bit hacky perhaps!