Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#205 2008-07-28 15:04:08

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

Re: glz_custom_fields

Thanks for the hint Zanza, I’ll check it out.

Offline

#206 2008-08-13 01:20:41

husainhk
Member
From: Dubai, UAE
Registered: 2007-08-12
Posts: 105
Website

Re: glz_custom_fields

Hi all,

I can’t seem to load articles based on a certain category, when I use this “/section/?c=categoryname” URL structure, in a page that has the <txp:glz_article /> tag. If I use the plain <txp:article /> tag, then it does load articles based on the category suppled in the URL.

Any idea, what could be the problem? Or is there a workaround for this? I am in need of urgent help!

Cheers,
Husain

Offline

#207 2008-08-13 16:13:12

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

Re: glz_custom_fields

Hi Husain,

I may be wrong, but from what I was reading, glz_article is for search results only. I thing you should have something like <txp:if_search> to use either glz_article or just txp:article depending on whether it’s a search results page, or a regular (category, section, individual article) page.

Hope this helps.

Offline

#208 2008-08-13 16:51:57

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: glz_custom_fields

gerhard still working on this? almost been a year since i bought this app thinking one of the features (‘trigger’ words) i had requested would make it in some time soon.

Offline

#209 2008-08-18 05:22:09

husainhk
Member
From: Dubai, UAE
Registered: 2007-08-12
Posts: 105
Website

Re: glz_custom_fields

coopersita,

I tried the <txp:if_search> setup, but doesn’t work :(. I am nesting it within the <txp:if_individual_article> tag, could that be the problem, although I don’t think so?

I can’t contact Geri, thought he’d be able to help. Anybody who knows, how this could be resolved?

Offline

#210 2008-08-21 02:31:07

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: glz_custom_fields

Hello All,

I have commented out some custom fields in txp_article.php so I can make them extra excerpts. (see here for more details)

Now I’m using glz_custom_fields and it is adding those fields back to the write tab – I guess it overrides txp_article.php.
I’m already using (sed_section_fields) to hide them again, but they “briefly” flash on the screen when changing sections – and while demoing TXP for the client they asked about it (of course).

Anyhow, I’d like to just mod glz_custom_fields so it will never display the original custom fields that I’m using as excerpts.
I had a look at the code and couldn’t figure out where to start.

Any ideas? I know I’m asking a lot. : )


Tom

Last edited by renobird (2008-08-21 02:32:12)

Offline

Board footer

Powered by FluxBB