glz_custom_fields 1.1 released · Sunday February 10, 2008 by Gerhard Lazu
A new version of glz_custom_fields has been released. Not all features on the roadmap made it in, but these did:
- an improved help (explanations in French, German, Spanish, Italian, Greek & Russian to follow shortly)
- a
jquery.jsfix suggested by Sam Weiss. I gave up the idea of using the latest jquery from code.jquery.com becuse I found it to be too much hassle (permissions, offline websites etc.) glz_custom_fieldandglz_if_custom_fieldtags work nicely with custom fields that contain multiple values. Custom fields > 10 on single articles need a hack to work (please read below)- plays nicely now with sed_section_fields
- TXP 4.0.6 compatible. If – for whatever reason – you didn’t upgrade TXP to 4.0.6, make sure jquery.js under the textpattern folder is at least 1.2. Upgrade to 4.0.6 strongly recommended.
- a custom field can be a multi-select as well (the only one remaining is textarea…)
For glz_custom_field & if_glz_custom_field to look into custom fields above 10 on single articles, you will need to apply the following patch: publish_r2777.patch (490.00B) . If you are familiar with SVN, all you have to do is run the following command in the textpattern directory:
patch -p1 -i path/to/publish_r2777.php publish.php
For the ones that aren’t familiar with SVN, replace getCustomFields() with the following.
The above patch is for the publish.php that comes with the latest stable TXP, 4.0.6. An upgrade is strongly recommended.
The post starting the glz_custom_fields forum thread was updated accordingly.
I would like to thank everyone that has supported this plugin, all you guys are great!
Does this plugin allow values in custom fields to go beyond 255 characters? Are there any otehr plugins or methods to store more than 255 characters in a custom field?
— Husain Hakim Mar 11, 08:29 AM #
It’s currently limited at 255 characters but this will change rather soon ; ). Textarea support (the one you’re looking for) will be out very very soon.
— Gerhard Lazu Mar 11, 08:33 AM #
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!
— Alice Jun 13, 02:01 AM #