display entries for tag and category
Posted: 27 February 2008 12:22 PM   [ Ignore ]
Newbie
Rank
Total Posts:  11
Joined  2008-02-27

hello, i’m trying to display entries based on a tag and a category. i have a tag cloud which displays:

tag1
tag2
tag3
tag4

when you click on tag3, i want it to display all tag3 entries under a specific category.

is this possible?

thanks!

Profile
 
 
Posted: 27 February 2008 12:56 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3256
Joined  2006-10-18

Definately!

Just link those Tags to a Tag Entries template.
From there, you can use the Category= parameter to filter your entries by Weblog Category.

 Signature 
Profile
 
 
Posted: 27 February 2008 01:22 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  11
Joined  2008-02-27

too simple! thanks pie man!

Profile
 
 
Posted: 11 March 2008 08:58 AM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  2
Joined  2008-02-10

Would it be possible to filter on multiple categories, e.g. category="cat1|cat2"

I actually need to create a more complex filter on categories. It is a combination of AND and OR (e.g. (A1 OR A2) AND B1 AND B2).

I think this can not be done with the ‘category’ parameter in the standard exp:weblog:entries so I’m thinking of moving groups of categories into tags, and do the OR in the category parameter and the AND in the tags.

If this would not work, any other ideas?

Profile
 
 
Posted: 11 March 2008 02:49 PM   [ Ignore ]   [ # 4 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3256
Joined  2006-10-18

prone,

This is possible currently with Tag:

category="1|2|4|8"

category="not 3|7"

The AND option is not available though.

 Signature 
Profile