Keyword

Change RSS feed output

  • Uzi
  • Uzi's Avatar Topic Author
  • Offline
  • Premium Member
More
3 weeks 1 day ago #173237 by Uzi
Uzi created the topic: Change RSS feed output
Hello,

Is it possible to change the RSS feed output? I am trying to get it working in a certain environment but the feed output needs to be changed. Instead of putting the items in a items field, I want it to directly output the items in the channel.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
3 weeks 1 day ago #173240 by Fotis
Fotis replied the topic: Change RSS feed output
K2 uses Joomla's feed parser, which means you can get ?format=feed&type=rss or ?format=feed&type=atom.

If these don't fit what you need, I recommend you grab the json output ?format=json, json_decode it and then do whatever you want with the data. Much better imho.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Uzi
  • Uzi's Avatar Topic Author
  • Offline
  • Premium Member
More
2 weeks 6 days ago - 2 weeks 5 days ago #173256 by Uzi
Uzi replied the topic: Change RSS feed output
Ok thanks. Isn't there a way to override the RSS feed, because it's exactly what I need, but I need to remove one parent entry so it gets loaded in correctly in my third party app.

EDIT: Also the ?format=json doesn't load. It just keeps spinning, but it never shows something. You sure that is the right call?
Last edit: 2 weeks 5 days ago by Uzi.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 days 18 hours ago #173318 by Fotis
Fotis replied the topic: Change RSS feed output
You can't override how RSS/Atom are produced without modifying core K2 views.

As for JSON, it works just fine, e.g.: getk2.org/blog?format=json

That view is available for categories/tags/users (any itemlist) and items only. Perhaps you were testing a different view (e.g. "latest from X").

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

Moderators: william white

Powered by Kunena Forum