Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2015-01-20 21:57:49

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Textiled output for Keywords field

I want to repurpose the Keywords field as it isn’t used for anything.
Currently it strips things like line breaks upon save and doesn’t use Textile.

Does anyone have simple instructions on how to accomplish this by hacking the core?

(I don’t know anything about PHP.)

Offline

#2 2015-01-20 22:36:15

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

Re: Textiled output for Keywords field

Try not to hack, use a plugin to hook into the article save step. Or combine that with a plugin to replace the current keywords box with one of your own that does what you want. Doing that is way more extensible than hacking.

Someone round here can probably throw something together for you if you define the sort of thing you want it to do / store. You’ll still be limited to 255 characters unless you alter the database, though.


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 2015-01-20 23:36:59

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

Re: Textiled output for Keywords field

masa wrote #287581:

I want to repurpose the Keywords field as it isn’t used for anything.

There are a number of Keyword-related plugins but not one that I am aware of that allows textile editing. I am thinking that glz_custom_fields might be something you want to take a long look at.

Offline

#4 2015-01-20 23:48:46

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: Textiled output for Keywords field

Stef & Michael,

OK, both of you are in favour of a plugin. I’ve had glz_custom_fields for as long as it’s been around but I’m a bit wary to use it at this stage – is it still maintained?

I will exceed that 255 character limit by the way.

Offline

#5 2015-01-21 05:36:58

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

Re: Textiled output for Keywords field

upm_textile used to do what you want. I’m not sure if it is currently available somewhere or compatible with the latest txp releases


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

Offline

#6 2015-01-21 13:26:18

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

Re: Textiled output for Keywords field

colak wrote #287590:

I’m not sure if it is currently available somewhere or compatible with the latest txp releases

I can’t vouch for this being authentic, but b319.info/?rah_plugin_download=upm_textile works.

Offline

#7 2015-01-21 13:46:04

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: Textiled output for Keywords field

Thanks for all the replies.

I got it working now using glz_custom_fields and upm_textile. It even seems to play well with adi_matrix and bot_write_tab_customize which is what I was a bit worried about.

Offline

Board footer

Powered by FluxBB