Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Filtering article_custom by multiple values on custom_field?
Hi
is something like this could work:
<txp:article_custom cutomfield="value1,value2" />
And the result should be all article that have value1 or value2?
Yes i am dreaming a little but who knows!
or i must stick on smd_query for that!
Offline
Re: Filtering article_custom by multiple values on custom_field?
You can filter the articles with smd_if far, far more powerfully than with the article_custom tag.
use article_custom to do a broad filter or no filter and nest smd_if inside that.
[edit] also, if you happen to be a real smarty pants you can use etc_query which can do anything including milk a cow.
Last edited by mrdale (2013-11-27 17:23:53)
Offline
Re: Filtering article_custom by multiple values on custom_field?
mrdale wrote:
also, if you happen to be a real smarty pants you can use etc_query which can do anything including milk a cow.
When I understand the workings of full capabilities etc_query, I will consider myself to have levelled up in life.
Offline
Re: Filtering article_custom by multiple values on custom_field?
Thanks
I think i will stick on smd_query it s more on my knowledge level that etc_query!
I asked here because sometimes somone comes to a solution that you never have thought about!
I feel that etc_query is a great plugin but it needs a book to explain his abilities!
Thanks again for your responses.
Offline
Re: Filtering article_custom by multiple values on custom_field?
Hi after some testing i found a simple solution: using keywords!!
Yes i never use it before but it seems that he can handle all the requirement! the only thing that i am not really satisfied is it s not handled by glz_custom_field thus i cant turn it into a multiselect form! but it s okay!
Offline
Re: Filtering article_custom by multiple values on custom_field?
Dragondz wrote:
I feel that etc_query is a great plugin but it needs a book to explain his abilities!
Blame the users that complain about it’s size, half of it is the doc. :)
Accidentally, the latest etc_search release solves your problem. Please let me know if you are still interested.
Offline
Re: Filtering article_custom by multiple values on custom_field?
Wouaou it seems very promising!
I will try it soon.
Offline