Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#553 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

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

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
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

#555 2009-10-22 18:08:39

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: glz_custom_fields

maniqui wrote:

hyphen is not a valid character for custom field names. I’m not sure if using it triggers any unexpected behaviour/bug.

I’ve been using hyphens for quite a long time now without problems. I asked at the time, and others confirmed they’re OK to use.

Offline

#556 2009-10-22 20:28:15

whaleen
Member
From: Portland
Registered: 2006-05-11
Posts: 373
Website

Re: glz_custom_fields

Thanks Gerhard! Donation in the mail.

I wonder if anyone has had any luck registering headings above CF groups in the write tab. Something like what follows:

Location

  • Lat
  • Long

Event

  • Place
  • Time

and so…

  1. Collapsable groups (on heading click) beneath headings a plus when plagued with 20+ CFs.
  2. Beyond inserting headings under Advanced Options, I thought I had heard somewhere it might be possible to insert a custom field in the same column (center) as the title and body fields in the write tab.
  3. I assume hacks are needed…? Any _clean_ones? Or better, a plugin that might jive with glz_custom_fields?
  4. Maybe this sort of things can be added to the coming features list? :)

txtstrap (Textpattern + Twitter Bootstrap + etc…)

Offline

#557 2009-10-23 11:29:10

LetterHoofd
Member
From: Kortrijk, BE
Registered: 2006-01-20
Posts: 40
Website

Re: glz_custom_fields

I’ve installed the most recent version of the plugin (v.1.2.3) and it seems “glz_if_custom_field” doesn’t work anymore. This is the code, which has worked until now.

<txp:glz_if_custom_field name=“speciaal” val=“Uitverkocht”><img src=”/images/uitverkocht.png” class=“uitverkocht” alt=“uitverkocht” /></txp:glz_if_custom_field>

The custom field “speciaal” is a checkbox, with “Uitverkocht” as one of the options.

Offline

#558 2009-10-23 12:22:53

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

Re: glz_custom_fields

You can replace <txp:glz_if_custom_field and </txp:glz_if_custom_field> with <txp:if_custom_field and </txp:if_custom_field>.

Offline

#559 2009-10-23 12:54:50

LetterHoofd
Member
From: Kortrijk, BE
Registered: 2006-01-20
Posts: 40
Website

Re: glz_custom_fields

That was easy ;)

Offline

#560 2009-10-24 08:07:27

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

Re: glz_custom_fields

whaleen wrote:

Thanks Gerhard! Donation in the mail.

Cheers Josh, you’re a star!

Collapsable groups (on heading click) beneath headings a plus when plagued with 20+ CFs.

You’re right, there are people which have as much as 50-60 custom fields, having everything under a single heading is madness. I’ve already added it on my upcoming features list.

Beyond inserting headings under Advanced Options, I thought I had heard somewhere it might be possible to insert a custom field in the same column (center) as the title and body fields in the write tab.

Yes, that is true for textarea custom fields. All textarea custom fields are automatically placed in the main column.

You’ve given me some great ideas Josh, thanks!

Offline

#561 2009-10-24 08:12:48

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

Re: glz_custom_fields

LetterHoofd wrote:

I’ve installed the most recent version of the plugin (v.1.2.3) and it seems “glz_if_custom_field” doesn’t work anymore.

Hey Michiel,

that glz_if_custom_field has been removed right after v1.2.0. I wanted better TXP 4.2.0 support so I’ve decided to get rid of the extra tags, use the stock ones (if_custom_field & @custom_field).

This is a question to you all. I was wondering if you’ve noticed any strange behaviour with the stock tags. I know that my tags were handling fields with multiple values nicely (e.g. one|two was output as one, two), but it didn’t feel like they were adding enough value. The bottom line is, are the stock tags up to scratch or do you need something more helpful/powerful?

Offline

#562 2009-10-26 23:13:57

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

Offline

#563 2009-10-27 01:06:47

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: glz_custom_fields


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#564 2009-10-27 09:33:04

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: glz_custom_fields

Hi all,
Thanks for the update to sed_section_fields, quick question: what items to I need to install to get it working, just the sed_plugin_library.v0.5.2.gz.txt or are there other support files needed too? Sorry, I know this is the glz_custom_field thread but there installation instructions on the sed_section_fields thread seem a bit confusing to me.
Thanks,
Phil

Offline

Board footer

Powered by FluxBB