Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#541 2009-10-22 11:28:28

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

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

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

Re: glz_custom_fields

Awesome Luca!

All the bugs you’ve raised have been fixed, I’m just packaging the new v1.2.3 and sending it to everyone.

Cheers guys for reporting all the bugs, the plugin is more stable and better than ever!

Offline

#545 2009-10-22 16:01:31

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

Re: glz_custom_fields

glz_custom_fields v1.2.3 has been released to the masses, enjoy!

(I should really update the starting post of this thread…)

Offline

#546 2009-10-22 16:25:39

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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 about under_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.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#547 2009-10-22 16:38:44

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

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

PascalL
Member
From: Switzerland
Registered: 2009-03-09
Posts: 132
Website

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

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

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

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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”.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#552 2009-10-22 18:08:17

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 1,000
Website

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

Board footer

Powered by FluxBB