Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2011-08-16 22:02:01
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Using Spaces in Custom Field Names and Data
I have the need to generate a list of articles based on custom fields. maruchan was kind enough to direct me to adi_gps and that worked like a charm.
BUT:
I am using glz_custom_fields which allows me to create names that have spaces. It would be very difficult because of the state of project to go back and have to change all the custom fields.
Also, as an example,I have a field like Author — in this field it has first & last name (with space) — I was unable to get a return using that field —-
Any suggestions/guidance would be appreciated —
progre55
Offline
Re: Using Spaces in Custom Field Names and Data
Also, as an example,I have a field like Author — in this field it has first & last name (with space) — I was unable to get a return using that field —
I think that “author” is reserved as it conflicts with <txp:author />
. Try changing it to “written_by” or something similar
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Using Spaces in Custom Field Names and Data
colak wrote:
I think that “author” is reserved as it conflicts with
<txp:author />
. Try changing it to “written_by” or something similar
Reserved yes. It doesn’t exactly conflict with article fields, data or <txp:author />
tag, but it does conflict with article_custom tag’s attribute named author
. If a custom field is named same as any of the build in tag attributes, the custom field can not be used as a tag attribute.
progre55 wrote:
I am using glz_custom_fields which allows me to create names that have spaces. It would be very difficult because of the state of project to go back and have to change all the custom fields.
Sorry, but space are not possible in tag attributes. You will have to remove space from custom field names. There is no way around that.
Values can be anything, and you can use links, forms, URLs and adi_gps to filter the lists as long as an URL used in a link is encoded correctly (percent encoding) if it contains non-ASCII characters or spaces.
Offline
#4 2011-08-17 09:59:25
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: Using Spaces in Custom Field Names and Data
There are (or at least, there were) some open issues about this in the SVN repository. I can’t seem to get GoogleCode to open up at the moment or I’d link to the exact issues. Anyway, once google seems to like the link again, have a search in there for known custom field related problems.
— Steve
Offline