Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2017-05-21 16:10:56

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,313
Website

Json-Feed

Is this worth some interests for the upcoming new version?

https://jsonfeed.org/


Patrick.

Github | CodePen | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#2 2017-05-21 17:27:36

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 7,341
Website

Re: Json-Feed

Hi Patrick

I guess we can still have that using rah_external


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | Respbublika! | NeMe @ github

Online

#3 2017-05-21 22:23:21

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 1,502
Website

Re: Json-Feed

this example was done for Jekyll but hopefully it is as dead easy for TxP.


…. texted postive

Offline

#4 2017-05-22 12:00:00

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 3,198
Website

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

#5 2017-05-22 16:57:01

kuopassa
Plugin Author
From: Porvoo, Finland
Registered: 2008-12-03
Posts: 191
Website

Re: Json-Feed

I made a plugin that creates that kind of feed. Here’s a demo. :-)

Offline

#6 2017-05-22 17:56:11

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 7,341
Website

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.org | hblack.net | LABS | State Machines | Respbublika! | NeMe @ github

Online

#7 2017-05-22 18:16:42

kuopassa
Plugin Author
From: Porvoo, Finland
Registered: 2008-12-03
Posts: 191
Website

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

#8 2017-05-23 08:21:33

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 3,198
Website

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

Board footer

Powered by FluxBB