Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#193 2008-04-27 18:31:12

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: glz_custom_fields

Can anyone tell me how I might go about customizing the separator between multiple values in these custom fields? I think that they are actually stored in the database using the pipe character (|) but for my output, I would like a comma and a space to separate them. I’m guessing I would have to explode and re-implode them with the new separator? I’m not a PHP expert by any means.
Seems like something others might want as well?

EDIT: Brilliantly, when you use <txp:glz_custom_field /> instead of the normal custom_field, it does output as a comma-separated list! Yay!

Last edited by nabrown78 (2008-04-27 20:34:52)

Offline

#194 2008-05-08 23:06:06

goncalo.dumas
Member
From: Lisbon
Registered: 2005-12-14
Posts: 97
Website

Re: glz_custom_fields

Is there any way to limit the length of the multiple choice areas? I have big names on some of them and they expand the admin layout.

Thanks, Gonçalo Dumas.

Offline

#195 2008-06-02 07:58:24

fangonk
Member
Registered: 2007-07-12
Posts: 44

Re: glz_custom_fields

Hmm, I suspect I missed something when I installed this plugin, but I can’t seem to get any custom forms over the standard 10 to show up in the write tab. Maybe its just my tired brain but I can’t seem to decipher the instructions about modifying publish.php and the svn stuff. All I did was install the plugin, add an extra custom form in the extensions tab and look in the write tab. Did I miss something? Is there a possibility of conflict with other plugins?

Offline

#196 2008-06-02 10:44:11

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: glz_custom_fields

fangonk wrote:

…I can’t seem to decipher the instructions about modifying publish.php and the svn stuff…

you don’t need SVN. Just open publish.php with a text editor, find the function getCustomFields() and replace it with this .
This shouldn’t have to do with the write tab though

Offline

#197 2008-06-09 00:02:31

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: glz_custom_fields

Hey Gerhard, I was wondering if it was possible to add a new feature to the plugin:
under extensions->custom fields if you want to edit a specific custom field you have the following fields:

  • Name:
  • Type:
  • Value:

My suggestion is to add another field named “title”. This way if I’m using a custom field named “date_of_birth” (cos I can’t use spaces in cfs) I can set a title like “Date of birth” and it will show in the “write” tab instead of the real custom field name.
I think this would enhance usability and make the “write” tab look prettier and more professional

Offline

#198 2008-06-11 20:05:01

coopersita
Member
Registered: 2005-09-28
Posts: 68
Website

Re: glz_custom_fields

This is a great plugin!

Is there a way to do advanced search?

Could you search using criteria from various custom fields? For example, if I have a custom field for price ranges, and another for brands, could I then search for products in a price range from a specific brand?

Also, is there a way to search so if I have a field with numbers (prices) I can search higher or lower than a number entered in a form?

Thanks!

Offline

#199 2008-06-14 15:03:05

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: glz_custom_fields

Hidalgo wrote:

I had this problem on a new install and worked out that ‘Allow form override’ needed to be enabled. This can be set in Admin > Advanced > Publish.

That’s correct. Just verified on one of lee’s sites.

Gerhard

Your jQuery removes existing fields and then does an insert after the “override-form”. On sites with override-form turned off, glz_custom_fields doesn’t show anything as the jQuery fails to find the insert point in the DOM.

Perhaps you could make the insert point selectable from any reasonable write-tab interface element so people can re-arrange the insert point as they see fit?


Steve

Offline

#200 2008-06-14 16:03:14

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: glz_custom_fields

net-carver wrote:

On sites with override-form turned off, glz_custom_fields doesn’t show anything as the jQuery fails to find the insert point in the DOM.

A temporary workaround is to enable “override form” and to hide it with ied_hide_in_admin

Offline

#201 2008-06-14 16:06:55

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: glz_custom_fields

redbot

That’s useful — thank you.


Steve

Offline

#202 2008-06-14 16:35:29

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: glz_custom_fields

net-carver wrote:

That’s useful — thank you.

At your service ;)

Offline

#203 2008-07-28 07:25:46

jano
Member
Registered: 2008-01-09
Posts: 23

Re: glz_custom_fields

Hi,

Does anyone know if it is possible to parse Textile in custom fields? Maybe via another plugin? Or should I custom code it?

Thanks.

Offline

#204 2008-07-28 09:53:47

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: glz_custom_fields

Check upm_textile.

Offline

Board footer

Powered by FluxBB