Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
<txp:article_custom MycustomField!="" /> CustomField not null
Hello,
article_custom used to return only articles that have precise value specified in a custom fields.
But how to return articles that have a value (not null) in the custom field?
Offline
Re: <txp:article_custom MycustomField!="" /> CustomField not null
The SQL statement uses LIKE operator, and doesn’t escape its wildcard pattern syntax, so you should be able to use its wildcards to specify fields with one or more characters. I.e.
<txp:article_custom my_custom_field="_%" />
Where _%
would specify articles with one or more character in my_custom_field
named custom field.
Offline
Re: <txp:article_custom MycustomField!="" /> CustomField not null
Youhou,
Thanks Jukka
Offline