Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#625 2009-12-16 17:26:50

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: glz_custom_fields

That worked perfectly, I was just reading through the smd_if documentation myself when you posted the solution. Thanks peoples, very helpful.

Offline

#626 2009-12-24 06:54:23

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

Re: glz_custom_fields

jstubbs wrote:

Hi Gerhard, the Github bugs/issues seems a great idea – except it means creating a Github account, and I’d rather not :-)

It’s up to you, but if you code an use versionining, git is the feather you need in your cap : ).

You can submit bug/feature requests here, I’m OK with entering them in github. As it was pointed out, you can vote for features without needing a github account.

My countries list displays correctly in Extension > Custom Fields, but NOT in my form drop down field. Not sure why this is..

I know you posted this a long way back, but wondering if you got the problem sorted.

Offline

#627 2009-12-24 07:01:56

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

Re: glz_custom_fields

whaleen wrote:

I’ve often though that some of the more popular plugin here in the TXP forums, for the benefit of devs and end-users, could use their own forum.

I am not too keen on forums. They can work well in certain cases, but most often there are better ways to collect user feedback. I would like to highlight Get Satisfaction here which I’m pretty sure some of you already know about. I’ve already created a feature proposal, let me know if it’s something you would fancy to see within the plugin itself.

Offline

#628 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

#629 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

#630 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

#631 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

#632 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

#633 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

#634 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

#635 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

#636 2010-01-14 14:49:05

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

Re: glz_custom_fields

Hey!
Is it possible to create something like this with this plugin please?

Offline

Board footer

Powered by FluxBB