Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#637 2009-12-24 07:26:38
Re: glz_custom_fields
jstubbs wrote:
Anyone know how to set an initial blank value in a drop down select, forcing the user to choose an option?
This happens by default unless you have a default value set eg {default value}
.
Which version of the plugin are you having this issue with?
Offline
#638 2009-12-24 07:34:40
Re: glz_custom_fields
speeke wrote:
I have tried to change a custom field type
text input
toselect
(the DB table updates properly as a result). However, when I edit anarticle
to select the custom field, all the selections come up ascustom_field_name0
rather than the list of entries in the DB table.
This is a genuine bug, flagged it accordingly, fixing now.
Offline
#639 2009-12-24 07:39:06
Re: glz_custom_fields
philwareham wrote:
That worked perfectly, I was just reading through the smd_if documentation myself when you posted the solution. Thanks peoples, very helpful.
That’s great guys, thanks for chipping in on this!
Have put this smd_if trick the wiki.
Last edited by gerhard (2010-01-30 09:01:10)
Offline
#640 2009-12-24 07:53:53
Re: glz_custom_fields
OK, since I went through all the posts since I’ve last been here, I’ll get to work, see if I can get you all a nice Christmas present : ).
I’ve updated the github page, you can check it out to see what’s coming and what has already been done.
Last edited by gerhard (2009-12-24 07:54:28)
Offline
#641 2009-12-24 11:42:12
Re: glz_custom_fields
Hi Gerhard,
I am using version 1.2.3. The countries list issue (difference between display in Extensions and the front end) was a bug in a Manfre plugin – he mentions this here.
For the drop down select default value issue – I have no default set. If I choose one option and set it to {option1}
, then I find it displays as-is i.e {option1}
in the list instead of being a chose value. The first list item is displayed instead as the default value.
I am not sure if this is a bug in glz_ or the mem_ plugin I am using, I will contact Michael and ask him.
Offline
#642 2009-12-24 11:49:10
Re: glz_custom_fields
jstubbs wrote:
For the drop down select default value issue – I have no default set. If I choose one option and set it to
{option1}
, then I find it displays as-is i.e{option1}
in the list instead of being a chose value. The first list item is displayed instead as the default value.
Can you disable all other plugins and see if you still experience this issue with glz_custom_fields on its own? If it’s easier, you can just set up a clean TXP locally with nothing but glz_custom_fields and see how it goes.
In my vanilla TXP install I don’t see this behaviour that you’re mentioning so it could either be another plugin or just your particular setup (that’s why testing against a clean vanilla is best).
Offline
#643 2009-12-24 12:36:19
Re: glz_custom_fields
Gerhard, I am trying this on a clean 4.2 install locally (using VirtualHostX, MAMP and SequelPro).
In order not to use any other plugins, what code do you suggest I use to output the two select boxes and test if the default values are being set? My current code uses mem_form.
Edit: The plugin works correctly on a clean 4.2 local install in terms of setting a default value, assigning a value to an article and the outputting the value. The only thing I have not tested is a select box on the front end.
I think its the mem_ plugin that is throwing glz_ off, because the default values display correctly in the Write pane on my live site. Just not in the form on the site, and that is powered by mem_.
Last edited by jstubbs (2009-12-24 12:47:42)
Offline
#644 2009-12-24 13:19:56
Re: glz_custom_fields
jstubbs wrote:
I think its the mem_ plugin that is throwing glz_ off, because the default values display correctly in the Write pane on my live site. Just not in the form on the site, and that is powered by mem_.
glz_custom_fields is 99% back-end, the only front-end functionality was the search form which I haven’t really updated since before TXP 4.2.0. Let me know what you need for the front-end and I’ll see if I can put something together for v1.2.4. Most of the code is already there, I just need to define some public interfaces talking to the back-end functions.
Last edited by gerhard (2009-12-24 13:21:20)
Offline
#645 2010-01-14 14:49:05
Re: glz_custom_fields
Hey!
Is it possible to create something like this with this plugin please?
Offline
#646 2010-01-14 16:06:40
Re: glz_custom_fields
Hi Gil, yes, all the above is possible in the new version which I still haven’t written the documentation for, but otherwise it’s ready. Check the v1.2.4 features which have already been implemented. PM for more details.
Offline
#647 2010-01-17 22:16:59
- zooeyripka
- Member
- Registered: 2007-07-15
- Posts: 12
Re: glz_custom_fields
I updated a site to 1.2.3 and now it is not stripping the slashes from the values (so where the value is Harvey’s Lake outputs as Harvey\‘s Lake). Has anyone had something like this happen or could anyone suggest a fix?
Offline
#648 2010-01-23 19:55:58
Re: glz_custom_fields
I’ve just donated and downloaded. Is the latest version 1.2.3? Because I’m really after the time picker function to make this perfect for me. Do I just wait for the new version to be released?
Thanks for the great plugin.
Offline