glz_custom_fields 1.1 released
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, 09: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, 09: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, 03:01 AM #
Hi Gerhard,
The getCustomFields() replace link isn’t working. Is there somewhere else to get that code?
thanks
Stu
— Stu Jan 19, 06:39 PM #
Try this Stu. I’ve updated the link in the post accordingly.
— Gerhard Jan 19, 08:42 PM #
great stuff, thanks
— Stu Jan 19, 09:17 PM #
Hi Gerhard,
1. Can I use glz_custom_fields 1.1 with 4.0.8?
2. If I can and I want to use > 10 custom fields, do I need a new patch (different from the one you supply at http://gerhardlazu.com/blog/51/glz_custom_fields-11-released)?
3. Is there documentation for the plugins tags I can see so I can work out how I will use it before I buy?
4. THANKS! This looks a brilliant plugin – hope I can use it :-)
Cheers, -Alan
— Alan Bristow Feb 20, 02:01 AM #
Hi Alan, a new glz_custom_fields 1.2 is coming out this week that works perfectly with Textpattern 4.0.8. For more info, check the forum glz_custom_fields thread. Cheers!
— Gerhard Mar 21, 11:44 AM #