Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#817 2011-02-25 17:34:39

liamdempsey
Member
From: Philadelphia, PA
Registered: 2009-09-16
Posts: 10
Website

Re: glz_custom_fields

@ alanfluff -

Good idea! I previously had a limit=“4” (which fit the design), but had since removed that. Based on your comment, I have added limit=“999”, but again, no luck.

Many thanks for your continued attention and assistance.

Offline

#818 2011-02-25 17:39:33

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

Re: glz_custom_fields

Have you ruled out the linked form being the problem? Try this and see if you get any output…

<txp:article_custom section="news" on_home_page="y" sort="custom_13 asc" limit="999"><p>this works</p></txp:article_custom>

If you get a list of ‘this works’ output, then that means the form is where the problem is.

Last edited by philwareham (2011-02-25 17:42:07)

Offline

#819 2011-02-25 17:39:47

alanfluff
Member
From: Ottawa, Canada
Registered: 2008-09-15
Posts: 222
Website

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

#820 2011-02-25 17:55:32

liamdempsey
Member
From: Philadelphia, PA
Registered: 2009-09-16
Posts: 10
Website

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

#821 2011-02-25 18:13:39

alanfluff
Member
From: Ottawa, Canada
Registered: 2008-09-15
Posts: 222
Website

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

#822 2011-02-25 18:25:28

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

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

#823 2011-02-25 18:28:29

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

Re: glz_custom_fields

Have you looked at the tag trace?

Offline

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

#825 2011-03-09 22:13:31

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

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

#826 2011-03-09 22:25:11

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

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

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

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

Board footer

Powered by FluxBB