Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#325 2009-04-27 13:17:50
Re: glz_custom_fields
jpdupont wrote:
With this great news + new improvements in admin interface … and of course Gerhard plugin, is it possible to get
- new custom fields > 256 chars (text/textarea) ?
- custom fields below the body or excerpt fields (not in the left sidebar) ?
This unfortunately would require extensive reworking of the plugin, can’t promise anything other than I’ll look into it after v1.3 : ).
Offline
#326 2009-04-28 18:06:33
Re: glz_custom_fields
Hi,
I’m arranging a pretty extended search form (many, many options).
This form is made by say 8 checkbox lists, each made of 6 to 10 boxes.
As you can imagine, i’m running out of space in the sidebar.
To save space, and have all the option in a limited box, I’d like to reproduce the behaviuor of the txp’s admin area, where you can toggle the visibility of the single list of options/functions.
As an example you can see the write tab, where you can click to show/hide “Textile Help”, “Advanced Options”, “Recent Articles”.
How can I achieve this goal? do you have any hint/chunk of code?
Please consider that I’m not a php programmer and I’d be very nervous in modifyng the internal plugin code… please, spoon-feed me :-D
thank you anyway
Simone (Italy)
EDIT: Obviously… i keeop trying solving the problem by myself, and I think the right way to solve my problem is sort of a combination/adaptment of this two how-tos:
http://textpattern.org/tips/362/hiding-and-customizing-the-comments-form-and-system
http://www.netlobo.com/div_hiding.html
But really, I can’t imagine how to “inject” this to my situation.
Last edited by midmood (2009-04-28 18:16:40)
Offline
#327 2009-04-29 04:29:05
Re: glz_custom_fields
gerhard wrote:
Make sure you have the right version of TXP 4.0.8 and glz_custom_fields v1.2.
I am new to TXP and was wondering:
- Is this the correct URL for your version of TXP
- How does your version differ from the original
- Do all author plugins work with your version of TXP
- Where is the download link to glz_custom_fields v1.2
- Is there a try before you buy option
- Will your glz_custom_fields plugin always require a different version of TXP to the original
Many thanks
“People who value their privileges above their principles soon lose both.”
Dwight D. Eisenhower
Offline
#328 2009-05-04 17:22:25
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: glz_custom_fields
Hi!
I am having problems with Search, is not restricting the search to a section.
This is what I am using:
<txp:glz_custom_fields_search_form results_page="#" searchby="Zona-Madrid:select, section, category" section="Belleza-y-Salud" />
where “Zona-Madrid” is the custom field with a select box of all the parts of the city, and section “Belleza-y-Salud” is the section with the articles about beauty and health.
But when I search for anything with that glz_custom_fields_search tag it gives me results not only in “Belleza-y-Salud” but also from the rest of the Sections.
Am I writing that tag wrong??
Thanks!!
Last edited by mlarino (2009-05-04 17:23:17)
Offline
#329 2009-05-06 15:49:14
Re: glz_custom_fields
Hi Gerhard!
I went to your site and did the PayPal donation thingy yesterday, but haven’t heard or received anything yet. I just want to make sure that I haven’t missed anything essential.
Everything ok?
I expect you’ve probably just been busy…
Offline
#330 2009-05-07 21:34:28
Re: glz_custom_fields
helsinkifrostbites wrote:
Hi Gerhard! I went to your site and did the PayPal donation thingy yesterday, but haven’t heard or received anything yet. I just want to make sure that I haven’t missed anything essential. Everything ok? I expect you’ve probably just been busy…
Hey Harri, I’ve just sent you the plugin, sorry for the delay.
I’m currently traveling, will be back in the UK mid next week, will be picking things up then. Cheers!
Last edited by gerhard (2009-05-07 21:35:22)
Offline
#331 2009-05-11 11:29:31
Re: glz_custom_fields
Great stuff!
Offline
#332 2009-05-12 00:31:52
- mlarino
- Member
- Registered: 2007-06-29
- Posts: 367
Re: glz_custom_fields
Hi! has anyone figured out a way to use
<txp:if_search_results>
with custome_filds_search?
I need to do something like:
<txp:if_search_results>
<p>These articles match your search request: </p>
<txp:else />
<p>Sorry, we were not able to find a page matching your search request <strong><txp:search_term /></strong>.</p>
</txp:if_search_results>
Thanks!
Offline
#333 2009-05-21 10:25:30
Re: glz_custom_fields
Hi,
I am building a book site that will need perhaps 100 custom fields, so I’ve installed v. 1.2 of the plugin with Gerhard’s own version of TXP 4.0.8 and everything seems to go well: I can create and edit custom fields in the Extensions tab, and then I see them appear on the Write tab as desired. And there’s where I begin to get lost.
For instance, I have a custom field called “Format” of the type radio buttom with two values: “p-book” and “e-book”. The idea is to check first if the custom field “Format” has the option p-book selected, and if so to output a block of code that gets values from several CFs related to p-books (but not to e-books). For this I use a form that looks like:
<txp:glz_if_custom_field name="Format" value="p-book">
<div id="pbookinfo">
<dl>
<dt>ISBN: </dt><dd><txp:glz_custom_field name="ISBN p-book" /></dd>
<dt>Author: </dt><dd><txp:glz_custom_field name="Author" /></dd>
<dt>Pages: </dt><dd><txp:glz_custom_field name="Pages" /></dd>
<dt>Subject: </dt><dd><txp:category /></dd>
<dt>Price: </dt><dd><txp:glz_custom_field name="P-book price" /></dd></dl>
</div>
</txp:glz_if_custom_field>
But it does not work like this, does it? Do I need to use a custom field for “pbook” and another for “ebook” with just one value each? And, should I use the standard TXPtags for custom fields or glz’s? (the first post in this thread says that “glz_custom_field and glz_if_custom_field” work well, but I’m getting an error that “this tag does not exist”).
I suppose I must be missing the obvious, but right now… “there’s too much confusion” and I’ll appreciate any hints.
Offline
#334 2009-05-21 10:35:24
Re: glz_custom_fields
jordi wrote:
Do I need to use a custom field for “pbook” and another for “ebook” with just one value each? And, should I use the standard TXPtags for custom fields or glz’s? (the first post in this thread says that “glz_custom_field and glz_if_custom_field” work well, but I’m getting an error that “this tag does not exist”).
Hi Jordi,
first of all, glz_custom_field & glz_if_custom_field have been deprecated in v1.2. This is mentioned in the first e-mail that you’ve received the plugin with. My patched version of TXP ensures custom_field and if_custom_field work as expected.
Yes, your use of if_custom_field is correct, just drop the glz_. Let me know how it goes!
Offline
#335 2009-05-21 10:48:30
Re: glz_custom_fields
speeke wrote:
- Is this the correct URL for your version of TXP
- How does your version differ from the original
- Do all author plugins work with your version of TXP
- Where is the download link to glz_custom_fields v1.2
- Is there a try before you buy option
- Will your glz_custom_fields plugin always require a different version of TXP to the original
Hi speeke,
1. No, this is the right URL (click on the download button – it’s a JS modal)
2. Here is a full diff. A lot of them are tab/whitespace mods, maybe 1/4 are relevant changes.
3. Yes, my TXP changes are only related to the use of custom_fields
4. & 5. It’s a paid-for version, please PM if you want us to have a chat about this.
6. With the mods that Robert kindly made available for 4.0.9, I’m hoping not.
A LOT of work went into 4.0.9, there’s so much I need to catch up on! glz_custom_fields v1.3 should be there though : ).
Last edited by gerhard (2009-05-21 10:59:24)
Offline
#336 2009-05-21 10:54:35
Re: glz_custom_fields
OK, thank you Gerhard, I had been searching this thread but had forgotten all about the email.
In short: now it works. There was another mistake in my code: I was using the attribute “value” for the custom field tag when it should be “val”.
Thanks again for your answer and for this killer plugin :)
Offline