Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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
Re: drop down lists for custom fields
gerhard,
I think wet may be working on this already :) You may contact him to see?
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Offline
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
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
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
Offline
Re: drop down lists for custom fields
gerhard, the screenshot seems to suggest the perfect solution!
Offline
Offline