Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

masa
Member
From: North Wales, UK
Registered: 2005-11-25
Posts: 1,093

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

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

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

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

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

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

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

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

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

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

Offline

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

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

Re: glz_custom_fields


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

Offline

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

#563 2009-10-27 09:39:20

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

Re: glz_custom_fields

Hey Phil, you need 2 files for sed_section fields & the glz_custom_fields:

1. sed_section_fields_library v0.5.2
2. sed_section_fields v0.5.3 (get the .gz.txt file)
3. glz_custom_fields v1.2.3

Offline

#564 2009-10-27 11:11:05

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: glz_custom_fields

Hi Gerhard,
First thank you for updating sed_section_fields. Unfortunately have some problems: the plugin seems to only work in the “sections” tab.
In the “write” tab nothing happens.

While looking at the page source I found this message in index.php?sed_resources=sed_sf_write_js, maybe can help you understand what’s going on:

<pre>A problem occured while loading the plugin: <b>sed_section_fields</b> -> <b>Notice: Undefined variable: prefs on line 638</b></pre>
<pre style="padding-left: 2em;" class="backtrace"><code>C:\xampplite\htdocs\test_site\textpattern\lib\txplib_misc.php(594) : eval()'d code:74 _sed_sf_write_js()
C:\xampplite\htdocs\test_site\textpattern\lib\txplib_misc.php:594 eval()
C:\xampplite\htdocs\test_site\textpattern\index.php:117 load_plugins()</code></pre>

My test site:
Textpattern v. 4.2
installed plugins:
1. sed_section_fields_library v0.5.2
2. sed_section_fields v0.5.3
3. glz_custom_fields v1.2.3

Offline

Board footer

Powered by FluxBB