Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2019-03-27 10:30:15

Destry
Moderator
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,197
Website

Re: what is Headless CMS

Exciting.

So I see myself opening up my article drafting tool of choice,* select a pre-designed template having all the needed fields accounted for in the JSON top matter, or whatever it is — and these fields would correspond with whatever custom fields I created with the unlimited custom fields in core — write my draft accordingly, in the comfort a man of my stature is entitled to, and send it off with a Cmd + S to the Textabulator.

Would I then be able to open the same source file later if I wanted to revise a live article? Or would I be resigned to the admin-editor post publish?

———-

*Preferably something exactly like iA Writer but supporting Textile, for which there is not one frickin’ application in existence.


The text persuades, the *notes prove。

Offline

#12 2019-03-27 10:50:40

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,665
Website

Re: what is Headless CMS

Destry wrote #317341:

select a pre-designed template having all the needed fields accounted for in the JSON top matter

See, this is how I’m not sure the best workflow. Clearly, if you’re using some third party tool for content composition it needs to be told – somehow – which fields to show, their types, options (for dropdown lists), required status, and so forth. It’s essentially supplying metadata about the fields in some format that the tool understands to paint the interface.

Things become tricky if you’ve, for example, installed a plugin that alters the available custom fields base on chosen Section. I think that’s probably outside scope.

write my draft accordingly, in the comfort a man of my stature is entitled to, and send it off with a Cmd + S to the Textabulator.

In essence, yes. Once the tool knows: a) what fields to render and how to render them, b) how to package up the resulting content and transmit it to us in a format we understand, c) where to send that info (with valid login credentials), then it’s game on.

Would I then be able to open the same source file later if I wanted to revise a live article? Or would I be resigned to the admin-editor post publish?

No idea. I’ve never seen such a tool in action so I don’t know the capabilites. But let’s say we open up example.org/textpattern/article/edit/{ID} then your tool could visit that URL and fetch the contents of the given article. Again, we’d need to supply the field metadata so the tool could render the fields appropriately.

Honestly, if the admin UI is distraction-free – something we strive to achieve – and works on multiple devices out of the box, the need for introducing some third party publishing tool is reduced somewhat. But in the interests of opening it up to such tools, if it’s not a major headache and we already have 70% of the infrastructure built already, we might as well do the remaining bit to plug the gap sometime.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#13 2019-03-27 13:34:24

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

Re: what is Headless CMS

In theory yes you can send from a third-party app into the Textpattern database if the app supports the API we choose and fields can be mapped. Although I don’t know of any apps available that do that specifically, or security implications of allowing data to be injected into a database.

More likely use is to send data from a Textpattern database to wherever you want to use it. Be that an app, flat-file CMS, web service, etc.

Offline

#14 2019-03-27 15:04:57

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,181
Website

Re: what is Headless CMS

Bloke wrote #317337:

Bundling XML-RPC with Textpattern was our attempt years ago to capture this market (e.g. third party tools like MarsEdit) but very few took it up because, frankly, it’s crap.

XML-RPC Specification – Originally released: January 21st, 1999. Last revised: June 15, 1999.

I remember trying out Windows Live Writer but it never went anywhere.

Offline

#15 2019-03-27 18:38:07

Destry
Moderator
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,197
Website

Re: what is Headless CMS

philwareham wrote #317345:

More likely use is to send data from a Textpattern database to wherever you want to use it. Be that an app, flat-file CMS, web service, etc.

Okay. Zero use case for me, then. And, frankly, I don’t mind using the admin-side editor. In fact, as somewhat complex as my setup is with short-codes and endnotes and whatnot, I don’t think a ‘headless’ situation would work.

And there’s still the lack of a good Textile text editor in the market anyway. I don’t mean something that can do it, but something slick and focused on par with iA Writer. It’s a shame it’s not out there, or that something like Writer doesn’t make an option for it. Oh welz.


The text persuades, the *notes prove。

Offline

#16 2019-03-27 18:39:45

Destry
Moderator
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,197
Website

Re: what is Headless CMS

michaelkpate wrote #317346:

XML-RPC Specification – Originally released: January 21st, 1999. Last revised: June 15, 1999.

lol


The text persuades, the *notes prove。

Offline

Board footer

Powered by FluxBB