Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-11-27 16:29:38

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,547
Website GitHub Twitter

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

#2 2013-11-27 16:55:38

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

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

#3 2013-11-27 21:41:58

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,356
GitHub

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

#4 2013-11-28 10:18:26

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,547
Website GitHub Twitter

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

#5 2013-11-28 16:04:40

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,547
Website GitHub Twitter

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

#6 2013-11-29 14:09:39

etc
Developer
Registered: 2010-11-11
Posts: 5,393
Website GitHub

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

#7 2013-12-01 08:43:33

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,547
Website GitHub Twitter

Re: Filtering article_custom by multiple values on custom_field?

Wouaou it seems very promising!

I will try it soon.

Offline

Board footer

Powered by FluxBB