Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2021-11-19 15:21:55

hilaryaq
Plugin Author
Registered: 2006-08-20
Posts: 335
Website

Quick Json question

Hi Txp friends! I’m just wondering and I haven’t tested it, will Textpattern accept JSON (it would be for video schema and confirmed doesn’t need to be in head) if pasted into the body text area for publishing or would it be stripped out or cause an error? Thanks for your knowledge!!


…………………
I <3 txp
…………………

Offline

#2 2021-11-19 15:53:48

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,468
Website GitHub

Re: Quick Json question

If you want to paste in non-textile stuff, just set the article’s markup processing to “leave text untouched” and save. That should do the trick then you can extract the JSON data and do what you want with it elsewhere.


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

#3 2021-11-28 18:53:36

hilaryaq
Plugin Author
Registered: 2006-08-20
Posts: 335
Website

Re: Quick Json question

Thanks Stef!


…………………
I <3 txp
…………………

Offline

#4 2021-11-29 00:18:51

towndock
Member
From: Oriental, NC USA
Registered: 2007-04-06
Posts: 329
Website

Re: Quick Json question

I have a busy site with hundreds of articles with json files, done in body, with “leave text untouched.” It works beautifully.

Last edited by towndock (2021-11-29 00:19:23)

Offline

#5 2021-11-29 12:09:10

hilaryaq
Plugin Author
Registered: 2006-08-20
Posts: 335
Website

Re: Quick Json question

Very cool thanks towndock!


…………………
I <3 txp
…………………

Offline

Board footer

Powered by FluxBB