Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 Yesterday 15:41:50

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,166
Website GitHub Mastodon Twitter

Find non textiled articles

Over 20 years ago, when I started using txp textile was slightly rough around the edges and it did not work as expected. This meant that sometimes I would post articles with “leave text untouched” or “convert to line breaks.”

20 years & 1,984 posts later, and all is working as it was designed for. I took advantage of the Easter holidays and did some updates to our site but I cannot think of a build in way to check all articles that do not go through the textile parser. Is there a way?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#2 Yesterday 16:18:10

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,877
Website GitHub

Re: Find non textiled articles

I don’t know of a built-in way, but you can check in the database by looking at the textpattern table and sorting via the textile_body (if necessary, the textile_excerpt) column. The values are:

0 = leave text untouched
1 = textile
2 = convert line breaks

Maybe that would help if you just want to identify them.


TXP Builders – finely-crafted code, design and txp

Offline

#3 Yesterday 16:51:57

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,166
Website GitHub Mastodon Twitter

Re: Find non textiled articles

jakob wrote #339583:

I don’t know of a built-in way, but you can check in the database by looking at the textpattern table and sorting via the textile_body (if necessary, the textile_excerpt) column. The values are:

0 = leave text untouched
1 = textile
2 = convert line breaks

Maybe that would help if you just want to identify them.

Yep, It’s the way Im doing it now. Checking everything through phpMyAdmin. It feels that it will take forerver. Is there a MySQL way that I can use in Database Manager to ask it to return just the ids of articles that have the value 2 in the textile_body?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#4 Yesterday 17:01:03

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

Re: Find non textiled articles

SELECT ID FROM textpattern WHERE textile_body = 2

That should do the trick.


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

#5 Today 01:55:59

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,166
Website GitHub Mastodon Twitter

Re: Find non textiled articles

Bloke wrote #339585:

SELECT ID FROM textpattern WHERE textile_body = 2

That should do the trick.

That’s exactly what I was looking for. Thanks so much Stef.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB