Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-08-17 14:47:48

JeroenC
Member
From: Finland
Registered: 2010-04-14
Posts: 30
Website

show "category1 and category2" or "category and NOT category 2"

I have tried rss_unlimited_categories, if_article, if_category and some others but untill far I have been not able to get what I want.

Ideally, and the reason for trying “rss_unlimited_categories”, is to have a list of categories from which I could make endless variations. For example I have these categories:
add
edit
remove
article
user

I like to show article with following categories assigned to them
add+user (any article with both “add”&“user”)
add+edit+remove+user (any article with “add““edit”“remove”+“user”)
remove+user -add (any article with “remove”+“user” but not “add”)

Does anybody has an idea how to accomplish this?

Many thanks :-)
Jeroen


Time to volunteer? Come and join us at a great project which is going to be opensource: https://www.caloom.com

Offline

#2 2010-08-17 15:11:01

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: show "category1 and category2" or "category and NOT category 2"

Well, the truth is that Textpattern is very bad in boolean AND searches. Boolean OR is perfectly well but the architecture of Textpattern core doesn’t support multiple one level filters (eg category AND category).


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#3 2010-08-17 15:20:47

JeroenC
Member
From: Finland
Registered: 2010-04-14
Posts: 30
Website

Re: show "category1 and category2" or "category and NOT category 2"

thanks Markus, I might have to go back to my original strategy “add_article” add_user”, “edit_article” “edit_user” etc
Maybe someone has an idea. Perhaps tags could do it but if boolean queries are a bottleneck… :-)

Jeroen


Time to volunteer? Come and join us at a great project which is going to be opensource: https://www.caloom.com

Offline

#4 2010-08-17 17:16:01

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: show "category1 and category2" or "category and NOT category 2"


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

#5 2010-08-17 17:16:54

JeroenC
Member
From: Finland
Registered: 2010-04-14
Posts: 30
Website

Re: show "category1 and category2" or "category and NOT category 2"

thanks “kemie”, gonna check it out right away :-)


Time to volunteer? Come and join us at a great project which is going to be opensource: https://www.caloom.com

Offline

#6 2010-08-17 19:11:47

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: show "category1 and category2" or "category and NOT category 2"

You should be able to achieve all you want with smd_query

Offline

Board footer

Powered by FluxBB