Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#541 2009-10-22 11:28:28
Re: glz_custom_fields
Hi Luca, I’ve been working on the new version for a few days now, quiet a few bugs to squash… I did however finish off the jQuery issues, I’m going to send you the fixed plugin in a jiffy.
Everyone else, I’m going through all thread pages one by one and fixing bugs, I’m currently on page 54, tackling the issue where default values are saved with {} in articles.
Offline
#542 2009-10-22 12:13:12
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: glz_custom_fields
Hey thank you Gerhard!!
I didn’t expect such a quick answer, very kind of you. I’ll try the code you sent me later and I’ll let you know how it goes.
Thank you again!
Offline
#543 2009-10-22 12:33:04
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: glz_custom_fields
It works!!
From my initial testing all those jquery problems are completely gone. Thank you so much!
Offline
#544 2009-10-22 12:46:46
Offline
#545 2009-10-22 16:01:31
Offline
#546 2009-10-22 16:25:39
Re: glz_custom_fields
Wow, thanks for hard work, Gerhard!
I’ve not yet been able to test it, but I may have the chance any time soon, on an über complex involving TXP + multi-site functionality + MLP (a rather big frankestein I’m creating).
I’ve a few quick questions/comments:
- is glz_custom_fields still compatible with MLP? (I will let you know when I tried it, but in the meanwhile, I ask)
- on the Releases notes, you mentioned: “All custom field names are trimmed now, only word
characters are allowed [A-Za-z0-9 ]”. What aboutunder_scores
? Underscores are valid on custom field names, and they may come in handy as a “separator” if you have to “parse/split” custom fields names (I’ve had once to do it)!
Thanks again for this fine release.
Offline
#547 2009-10-22 16:38:44
Re: glz_custom_fields
Hey Julian,
no idea whether the plugin is compatible with MLP, never tried the 2 together.
Good point about underscores. Changed the behavior so that it accepts both – & _ characters in custom field names. You’re right, they’re both valid. I’ve just re-packaged the plugin, the link which you’ve all received contains this quick fix.
Cheers!
Offline
#548 2009-10-22 17:17:53
Re: glz_custom_fields
Awsome, thanks!!!
Offline
#549 2009-10-22 17:30:41
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: glz_custom_fields
Julian,
glz_custom works ok with the MLP, or at least it worked ok with previous versions.
Apart from this, probably it isn’t useful in your case but I now remember some months ago I made a very short and raw plugin which lets you give a ‘title’ (as per txp terminology) for your custom fields names.
So – for example – if your cf name is “position_on_the_homepage” you can make it show like “Position on the home page” in the write tab, without those unprofessional looking underscores.
Gerhard – sorry to pollute this thread – anyway I confirm this version works very well!
Last edited by redbot (2009-10-22 17:35:15)
Offline
#550 2009-10-22 17:46:45
Re: glz_custom_fields
On my 4.2/1.2.3 install sed latest no longer displays more than 10 cfs, So I’m really desperately needing sed functionality in glz.
Donation forthcoming. made
Last edited by mrdale (2009-10-22 18:12:36)
Offline
#551 2009-10-22 17:56:14
Re: glz_custom_fields
no idea whether the plugin is compatible with MLP, never tried the 2 together.
Oh, sorry, I thought that previously there had been efforts to make them compatible. Maybe the effort was done in the MLP side. Or maybe I’m just confused.
Good point about underscores. Changed the behavior so that it accepts both – & _ characters in custom field names.
Cool, but still there may be a little problem (don’t hate me!): hyphen is not a valid character for custom field names. I’m not sure if using it triggers any unexpected behaviour/bug. I would say that hyphenated custom field names may screw up something when using them as attributes in article/article_custom (custom-field-name="value"
).
From the Textbook: “Custom names may include letters (uppercase or lowercase), numbers and under_scores, but no spaces or other special characters”.
Offline
#552 2009-10-22 18:08:17
Re: glz_custom_fields
My experience may be exceptional, but I’ve used hyphens and underscores in custom field names forever, and with glz_cf, with no problems.
Offline