Keyword

Cutomise RSS Feed

  • Red Evolution
  • Red Evolution's Avatar Topic Author
  • Offline
  • Premium Member
More
3 years 9 months ago #178011 by Red Evolution
Cutomise RSS Feed was created by Red Evolution
Hi,

Is it possible to customise the layout of the RSS feed? My client uses the media tab to load in images from their Flickr and Photoshelter account but the RSS feed only looks for an image in the Image tab rather than the media tab. I've found the file that controls the RSS feed layout but wasn't sure if it was possible to create an override for it or if the only way to change it is to 'hack' the main code.

Thanks,
Dave

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #178021 by JoomlaWorks
Replied by JoomlaWorks on topic Cutomise RSS Feed
K2 bakes into the each feed item all available content. E.g. for the media tab, see this: github.com/getk2/k2/blob/master/components/com_k2/models/item.php#L334

I know we use <div class="K2FeedVideo">...</div> (for backwards compatibility reasons of course) but it should output everything there. Plugins can even be parsed just fine.

Are you sure the output is not blocked by some other plugin or even the plugin that may render these Flickr images? They may render content explicitely when the page format is set to "html".

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Red Evolution
  • Red Evolution's Avatar Topic Author
  • Offline
  • Premium Member
More
3 years 9 months ago #178027 by Red Evolution
Replied by Red Evolution on topic Cutomise RSS Feed
Sorry Fotis, I wasn't very clear with what I was looking to achieve.

The video does output as expected but by default it appears below the content within the <description> tag. When pulling this data into Mailchimp, it uses everything within the <description> tag as it's main content, which means the image embedded in the Media tab appears below the content rather than above the content like the image does. So what I was wanting to be able to do was move the video section up beside the image so that it appears before the content or remove it from the <description> tag so that I can isolate it properly in the Mailchimp code.

Thanks,
Dave

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #178030 by JoomlaWorks
Replied by JoomlaWorks on topic Cutomise RSS Feed
The quick way is to change the order in the file I referenced.

The right way is to have a plugin re-order that content based on the surrounding div's class name. That's why these blocks are marked and not output as-is.

Could be a system plugin being invoke only when the document format is "feed".

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Red Evolution
  • Red Evolution's Avatar Topic Author
  • Offline
  • Premium Member
More
3 years 9 months ago #178040 by Red Evolution
Replied by Red Evolution on topic Cutomise RSS Feed
Okay, I wasn't sure if it was possible to create an override file for it in the template 'html' folder. I'll need to run it past the client and see what he reckons. Thanks for your help with this.

Dave

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #178061 by JoomlaWorks
Replied by JoomlaWorks on topic Cutomise RSS Feed
There is no override for sure.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum