Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-01-28 18:40:12

ig0r
Member
Registered: 2009-01-26
Posts: 13

How can I change custom_field from text to checkbox

Hello!
Do somebody know how can i get a custom field which is a checkbox ?

If a add new custom_field from admin preferences – it appears as a text field. The MySQL type of it is varchar (255) maybe I can change it to Enum (0,1) ? But how will I display them in admin panel?

Or I can leave the varchar and putting “1” will be – Yes (checked) nad “0” – No (not checked) But again – haw do I display it in admin panel?

Thank you!

Offline

#2 2009-01-28 19:23:57

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

Re: How can I change custom_field from text to checkbox

Ah, you’ll be wanting glz_custom_fields then.


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 2009-01-28 20:57:17

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: How can I change custom_field from text to checkbox

sellhome wrote:

I dont understand

From the link Stef provided

plugin sits under the Extensions tab in the back-end and gives your custom fields new life. You can finally have custom fields that are selects, multi-selects, checkboxes or radios (and the default input fields) and you can predefine some values for those.

The glz_custom_fields plugin gives you this ability.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#4 2009-01-28 21:02:34

keith
Member
From: Blyth, Northumberland, England
Registered: 2004-12-08
Posts: 199
Website

Re: How can I change custom_field from text to checkbox

Matt, I think that Sellhome’s is a spam post.


Keith
Blyth, Northumberland, England
Capture The Moment

Offline

#5 2009-01-28 22:35:20

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: How can I change custom_field from text to checkbox

keith wrote:

Matt, I think that Sellhome’s is a spam post.

I didn’t notice the url in the signature. Thanks. I reported the post.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

Board footer

Powered by FluxBB