Keyword

Change RSS feed output

  • Uzi
  • Uzi's Avatar Topic Author
  • Offline
  • Premium Member
More
4 months 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
  • Online
  • Administrator
  • JoomlaWorks Support Team
More
4 months 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
3 months 4 weeks ago - 3 months 4 weeks 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: 3 months 4 weeks ago by Uzi.

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

  • Fotis
  • Fotis's Avatar
  • Online
  • Administrator
  • JoomlaWorks Support Team
More
3 months 1 week 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.

More
2 months 3 weeks ago - 2 months 3 weeks ago #173471 by agan E
agan E replied the topic: Change RSS feed output
Hi Fotis,
I'm getting only few lines of description only. i like to get full posts in rss feed (xml url). can you help on this.
Last edit: 2 months 3 weeks ago by agan E. Reason: to add few more details like format and out put type.

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

  • Fotis
  • Fotis's Avatar
  • Online
  • Administrator
  • JoomlaWorks Support Team
More
2 months 3 weeks ago #173472 by Fotis
Fotis replied the topic: Change RSS feed output
Just enable full-text inclusion for feeds in the "Content" tab under the K2 settings.

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.

More
2 months 3 weeks ago - 2 months 3 weeks ago #173477 by agan E
agan E replied the topic: Change RSS feed output
Hi Fotis,

First of all, Thanks for the quick reply. While i'm checking the k2 settings under "Content" tab full-text inclusion already enabled and i guessed the actually problem. I set "Item Introtext word limit" to "15" once i removed that i'm getting full description in my rss url.

Thanks for the tip. [It help me to where to look. ]

By
Agan
Last edit: 2 months 3 weeks ago by agan E. Reason: grammar correction

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

  • Fotis
  • Fotis's Avatar
  • Online
  • Administrator
  • JoomlaWorks Support Team
More
2 months 3 weeks ago #173481 by Fotis
Fotis replied the topic: Change RSS feed output
Great :)

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.


Powered by Kunena Forum