Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » drop down lists for custom fields

#37 2007-02-16 03:05:46

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: drop down lists for custom fields

tjnuckolls wrote:

Just to throw in my two bits. I believe this is a plugin, that would become invaluable in helping developers simplify a user’s interaction with the write tab. In other words, I’d get a lot of use out of this plugin. Thanks!

Indeed, I’ve been asking around about this since gamma :)

Maybe we should write how it would work precisely, and put some money on it.

Offline

#38 2007-02-16 15:38:22

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

Re: drop down lists for custom fields

Guys, I’m sorry I have to keep you waiting for so long, but I’m totally swamped with work. You know the saying “take care what you wish for”…

I would very much like to code away TXP plugins, but I have so much stuff going on (not only profesionally) that I’m lost. Thank you for your patience, I’ll give you an update this weekend. Cheers, G.

Offline

#39 2007-03-05 07:24:53

tjnuckolls
Member
From: Los Angeles, CA
Registered: 2005-03-23
Posts: 23
Website

Re: drop down lists for custom fields

Bump.

[Is there any way for a non-programmer (like me) to help with this? I feel like I’m on the verge of being able to contribute more to the textpattern community, but I’ve had trouble so far, and helping with this plugin might be a good way to get started writing textpattern code if I had a little coaching. Just a thought since your time is understandably limited.]

Offline

#40 2007-03-20 01:30:03

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

Re: drop down lists for custom fields

Hi guys, I feel really bad for not getting back onto you earlier, but I think I might have taken far too much work on during the last 2-3 months…

Anyways, the bottom line is that you have a great TXP user which I’m helping out for quiet a while now and we’re at the point where his project would greatly benefit from a custom_fields plugin. He’s actually using my “ancient” hack for drop-down lists, but the solution is simply not cutting it anymore (not to mention that it’s sooo hack-ish – which is a bad thing).

So, I am going to crack on with this plugin shortly and all you have to do – I know that this will sound really annoying – is hold onto your horses a wee more.

I don’t want to sound cheeky or anything, but would it be worth sorting out a “Paypal donate” type of link or something similar? That would definitely add an extra kick to the whole thing…

Offline

#41 2007-03-20 02:35:30

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: drop down lists for custom fields

gerhard,
I think wet may be working on this already :) You may contact him to see?


Offline

#42 2007-03-20 09:48:19

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

Re: drop down lists for custom fields

Matthew, cheers mate for pointing this out. The thing I mostly hate is DRY. I just dropped Robert an e-mail enquiring about this further.

Offline

#43 2007-03-20 10:08:33

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,333
Website Mastodon

Re: drop down lists for custom fields

I’m trying to avoid NIH as much as possible, so I’ll be quite content if someone else comes up with a working solution. Mine wouldn’t be ready any time soon.

Offline

#44 2007-05-09 09:34:11

lozmatic
Member
From: Melbourne, Australia
Registered: 2006-08-27
Posts: 259
Website

Re: drop down lists for custom fields

This would be useful, indeed. But hacks are messy.

I think this would need to be a new feature in the next version of Textpattern where you would have an extra tab in Admin to manage custom fields – their type, their values, etc…

Last edited by lozmatic (2007-05-09 09:34:42)

Offline

#45 2007-05-10 12:14:52

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

Re: drop down lists for custom fields

Hi guys, work is well underway on this project that offers a solution to the custom_fields shortcoming, but it’s a bit hacky hacky at the minute and not fully polished. It’s still a bit more to go before I’ll be able to release it as a plugin…

What I would like to ask the hard-core devs (Mary, Alex, Sencer etc.), is what would the best approach be:

A. Use serialization and store custom_field options in txp_prefs (val column would have to be changed to a full varchar at least)?

B. Use a separate table with just 2 columns, custom_x_set (e.g. Price, Weight etc.) and value (e.g. <1kg, 2kg-5kg, >5kg etc.) while txp_prefs would be used to store the type of the custom field (drop-down, checkbox etc.)?

I’m currently using B., thought about A. only later on in the project.

Offline

#46 2007-05-15 12:19:40

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

Re: drop down lists for custom fields

If you’re not willing to reply to even more questions (referring to my last post here), let’s see if there will be some reaction to this…

Offline

#47 2007-05-15 13:38:05

lozmatic
Member
From: Melbourne, Australia
Registered: 2006-08-27
Posts: 259
Website

Re: drop down lists for custom fields

gerhard, the screenshot seems to suggest the perfect solution!

Offline

#48 2007-05-15 13:42:53

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

Re: drop down lists for custom fields

Did I mention that all is working as well?

I still have to sort out callbacks for having the extra custom fields display on article etc, but we are getting there ; ).

Offline

  1. Index
  2. » Archives
  3. » drop down lists for custom fields

Board footer

Powered by FluxBB