- Posts: 140
COMMUNITY FORUM
Change RSS feed output
- Uzi
- Topic Author
- Offline
- Premium Member
Less
More
5 years 1 month ago #173237
by Uzi
Change RSS feed output was created by Uzi
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.
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.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
5 years 1 month ago #173240
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on 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 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.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Uzi
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 140
5 years 1 month ago - 5 years 1 month ago #173256
by Uzi
Replied by Uzi on 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?
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: 5 years 1 month ago by Uzi.
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
5 years 1 month ago #173318
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on 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").
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").
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- agan E
- Offline
- New Member
Less
More
- Posts: 4
5 years 3 weeks ago - 5 years 3 weeks ago #173471
by agan E
Replied by agan E on 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.
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: 5 years 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.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
5 years 3 weeks ago #173472
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Change RSS feed output
Just enable full-text inclusion for feeds in the "Content" tab under the K2 settings.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- agan E
- Offline
- New Member
Less
More
- Posts: 4
5 years 3 weeks ago - 5 years 3 weeks ago #173477
by agan E
Replied by agan E on 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
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: 5 years 3 weeks ago by agan E. Reason: grammar correction
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
5 years 2 weeks ago #173481
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Change RSS feed output
Great :)
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Uzi
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 140
4 years 7 months ago #175475
by Uzi
Replied by Uzi on topic Change RSS feed output
Hello,
Back again because I decided to just hack the core if there isn't a user friendly solution available. Can you point me in what file I need to be to change the RSS output?
Back again because I decided to just hack the core if there isn't a user friendly solution available. Can you point me in what file I need to be to change the RSS output?
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
4 years 7 months ago #175481
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Change RSS feed output
That would be Joomla. I don't recommend so.
Why not use ?format=json in K2 URLs and simply grab ALL the data that K2 outputs? Much better compared to RSS/Atom feeds.
Why not use ?format=json in K2 URLs and simply grab ALL the data that K2 outputs? Much better compared to RSS/Atom feeds.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.