*

Hugo

  • ****
  • 186 posts
Multiple images RSSFeed
« on: May 10, 2023, 12:29:16 AM »
How to showcase multiple images in the RSSFeed?

We currenlty use the follwing piece of code which works well so showcase an image, however, we want to showcase 3 to 5 images (adjustable value)

if(@$item['image']) {
        $image_url = str_replace('_thumbnail', '', $item['image']['url']); // remove '_thumbnail' from image URL
        echo '<image>';
        echo '<url>'.$image_url.'</url>', PHP_EOL;
        echo '</image>', PHP_EOL;
      }

*

MB Themes

Re: Multiple images RSSFeed
« Reply #1 on: May 10, 2023, 03:26:16 PM »
I think this one is prepared in Search model and only 1 image is added for each item.
Update would needed to be there first
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Hugo

  • ****
  • 186 posts
Re: Multiple images RSSFeed
« Reply #2 on: May 10, 2023, 03:38:27 PM »
Hi, could this be fixed?

*

MB Themes

Re: Multiple images RSSFeed
« Reply #3 on: May 12, 2023, 10:38:12 AM »
@Hugo
Bug must be fixed.
This is not bug, it was designed like that and there is no plan to work on improvements of RSS in future.
Easiest way is to update search model, add there different key field (like 'images') with array of resources.
Alternatively you can load resources directly above that code and use loop.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Hugo

  • ****
  • 186 posts
Re: Multiple images RSSFeed
« Reply #4 on: May 13, 2023, 04:36:30 PM »
Hi,

Would a custom development be doable to get the first 5 (or even 8 uploaded) images?

*

MB Themes

Re: Multiple images RSSFeed
« Reply #5 on: May 15, 2023, 03:08:27 PM »
@Hugo
Probably yes, but require core updates.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots