Jump to content

Recommended Posts

Posted

Is it possible to include images in an RSS feed using http://modules.processwire.com/modules/markup-rss/? I've set up an RSS page and I'm just using $rss->render($items); to create the XML.

I know I can use the description field, for example:

$rss->itemDescriptionField = 'article_featured_image';

However this only outputs the fieldname; can I include the full path? $config->httpHost

Posted
1 hour ago, adrian said:

Try this version: 

 

Thanks. I'm guessing you then can't use MarkupLoadRSS to get the image field now that it's in the feed?

Posted
1 minute ago, John the Painter said:

Thanks. I'm guessing you then can't use MarkupLoadRSS to get the image field now that it's in the feed?

Not sure - I haven't looked into it, but I based on this question, are you just generating the RSS feed so you can load it back into another site? If this is the case, maybe you should consider another strategy like making a simple REST service?

Posted

Thanks, adrian. There's an RSS feed on a site that we want to loop into and display on another site. I have access to the site with the RSS (which uses PW) and have set up a /rss/ page that includes the image BUT using MarkupLoadRSS on the site I want to display... you can echo out title, date etc... but don't think you can echo out the enclosure tag (<enclosure url="http://website.com/site/assets/files/1535/jc_image.400x300.jpg" length="28983" type="image/jpeg"/>).

Personally I never wanted to use RSS but there's a few other sites we're taping into too that we can only use RSS.

Posted
1 hour ago, John the Painter said:

but don't think you can echo out the enclosure tag

Have you tried? I honestly haven't played with images and the Markup module, but it would be worth seeing if you can, even if you need to parse it out from the enclosure yourself.

I know it's old (and there are likely more modern solutions), but magpierss works with images.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...