Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Json-Feed
Is this worth some interests for the upcoming new version?
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: Json-Feed
Hi Patrick
I guess we can still have that using rah_external
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Online
Re: Json-Feed
this example was done for Jekyll but hopefully it is as dead easy for TxP.
…. texted postive
Offline
Re: Json-Feed
Already done and in Textpattern 4.7dev. Please see here for a basic example which you could flesh out into a feed instead of meta data.
Tags accept escape="json"
now.
Offline
Re: Json-Feed
I made a plugin that creates that kind of feed. Here’s a demo. :-)
Offline
Re: Json-Feed
Woah Prmal feeds need something etri, that was fast!!!
Normal rss feeds need <link rel="alternate" type="application/rss+xml" title="RSS feed" href="http://www.site.tld/rss/" />
. I can not see what is needed in the specs for the json one.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Online
Re: Json-Feed
^ Maybe something like this could be used:
<link rel="alternate" type="application/json" title="JSON feed" href="http://www.site.tld/?kuo_json_feed" />
Offline
Re: Json-Feed
@kuopassa great work! I’ve put this into the upcoming Textpattern official site and it works very well. Maybe option to rename the feed query name and limit to a certain section would be great additions.
Along the lines of…
<link rel="alternate" type="application/json" title="JSON feed" href="<txp:site_url />feed.json?section=blog">
…for consistency with the existing Textpattern feed structure.
See the ‘Discovery’ section of the JSON feed spec for the recommended syntax.
Offline
Pages: 1