Keyword

Change RSS feed output

  • Uzi
  • Uzi's Avatar Topic Author
  • Offline
  • Premium Member
More
4 years 7 months ago - 4 years 7 months ago #175485 by Uzi
Replied by Uzi on topic Change RSS feed output
Because I need to insert an RSS feed to the third party application. So i have 2 options here, judiging by your coment:

1. I override the RSS feed output system of Joomla (via a plugin or just a core hack)
2. I use the format json output and convert that to a RSS feed

I think going with option 1 is better because that is just way faster for me. I just want to know where i can change the output of the existing output.

EDIT: OK i foudn the file in libraries/src/Document, but I don't see how K2 fits into that. How can I for example change how the image is loaded?
Last edit: 4 years 7 months ago by Uzi.

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

More
4 years 7 months ago #175486 by JoomlaWorks
Replied by JoomlaWorks on topic Change RSS feed output
Don't hack core files.

Additionally, the RSS feed does not offer the content flexibility of JSON.

Instead do this simple thing.

Grab the JSON output that K2 provides, process it in a standalone PHP file, outside of Joomla, and simply produce a new RSS or Atom feed. Then use this "bridge" file's feed output to to serve the feed to your third party app.

Reading the JSON file is a piece of cake with file_get_contents and then json_decode. You'll get an object which you can then transform to whatever you like. Which do you think is easier? This option or hacking the RSS/Atom driver in Joomla?

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