Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#805 2011-02-25 17:39:47
Re: glz_custom_fields
Hmm, I had this noted down a while back to remind me how I fixed this once, dunno if it’s applicable here, hope so:
Best practice is that custom names may include letters (uppercase or lowercase), numbers and under_scores, but no spaces or other special characters.
Luck! Cheers, -Alan
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline
#806 2011-02-25 17:55:32
Re: glz_custom_fields
@ philwareham -
I used the code as you suggested and got a list of ‘this works’ output.
However, my form is really, really simple: <p><txp:permlink><txp:title /></txp:permlink></p>
Do you still think that my form might be the problem?
@ alanfluff -
Cheers for that recommendation. I thought about that too, and per your recommendation changed ‘news-listing’ to ‘news_listing’. Still no dice!
Offline
#807 2011-02-25 18:13:39
Re: glz_custom_fields
Remove some of the criteria from the article_custom
for now, such as the on_home_page
and if not that then also the section
, whittling away complexity until the sort order is correct, then add back one at a time to see if that suggests anything?
A tough one! Luck, cheers, -Alan
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline
#808 2011-02-25 18:25:28
Re: glz_custom_fields
In your original post your code suggested it was linking to a form labelled as ‘news’ yet in your last message you state it is labelled ‘news-listing’ (or ‘news_listing’), is that the problem?
Offline
#809 2011-02-25 18:28:29
Re: glz_custom_fields
Have you looked at the tag trace?
Offline
#810 2011-03-09 22:03:18
- dreamer
- Member
- Registered: 2007-06-08
- Posts: 242
Re: glz_custom_fields
I set up a custom field for colors. My client told me that the plugin only allows for them to check off up to 26 colors. So no matter if they check off more than 26 colors, they will still be limited to 26. Suggestions?
Offline
#811 2011-03-09 22:13:31
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: glz_custom_fields
Custom fields are varchar128. Try to make it varchar256 in phpMyAdmin.
Edit: No, I lied, they’re varchar 255 right now. Set it higher, anyway.
Last edited by uli (2011-03-09 22:24:54)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#812 2011-03-09 22:25:11
Re: glz_custom_fields
dreamer wrote:
I set up a custom field for colors. My client told me that the plugin only allows for them to check off up to 26 colors. So no matter if they check off more than 26 colors, they will still be limited to 26. Suggestions?
I think they are limited to 255 characters if memory serves well. Try modifying the column type (MySQL or phpmyadmin) to VARCHAR(65535)
, the maximum allowed size for this type of column.
Offline
#813 2011-03-14 21:17:27
- dreamer
- Member
- Registered: 2007-06-08
- Posts: 242
Re: glz_custom_fields
I’m assuming I should modify the Length/Values field in the Value box to 65535? Sorry, total php newb.
EDIT: I tried setting it to 65000 (65535 didn’t seem to work) but this has no effect on allowing me to tick off more colors.
Last edited by dreamer (2011-03-14 21:27:31)
Offline
#814 2011-03-14 21:30:13
- dreamer
- Member
- Registered: 2007-06-08
- Posts: 242
Re: glz_custom_fields
Also, is there a way to align the boxes next to the name? On my site, the boxes are 1 row above the actual name of the field so it is confusing to figure out which box goes with which field. See example http://whatilovemost.com/custom-colors.jpg
Offline
#815 2011-03-14 22:09:50
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: glz_custom_fields
dreamer wrote:
align the boxes next to the name
Have a look at this post and also at the reply of alanfluff.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#816 2011-03-14 22:11:13
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: glz_custom_fields
dreamer wrote:
EDIT: I tried setting it to 65000 (65535 didn’t seem to work) but this has no effect on allowing me to tick off more colors.
You can only set it to (max) 65535 in MySQL 5.0.3 or higher, before that the limit is 255.
Last edited by els (2011-03-14 22:11:47)
Offline