Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#637 2009-12-24 07:26:38

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

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

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

Re: glz_custom_fields

speeke wrote:

I have tried to change a custom field type text input to select (the DB table updates properly as a result). However, when I edit an article to select the custom field, all the selections come up as custom_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

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

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

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

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

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

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

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

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

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

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

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

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

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 637
Website

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

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

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

aslsw66
Member
From: Canberra, Australia
Registered: 2004-08-04
Posts: 342
Website

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

Board footer

Powered by FluxBB