Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-08-12 11:19:50

nanikore
Member
From: Tokyo, Japan
Registered: 2006-07-09
Posts: 11
Website

Selecting from multiple catagories

I have a feeling this is simple, but I can’t figure it out…

I want to have the most recent five articles listed as a ‘What’s New’ on my front page, but I only want them from three of my catagories. I tried using this removed:

Recent Updates
txp:article_custom form=“welcome-whatnewlist” limit=“5” category=“japan” category=“tech” category=“stuff” sortby=“Posted” sortdir=“desc” excerpted=“n” listform=“welcome-whatnewlist” /

Which does the job except it only pulls articles from the “stuff” category. Whilst looking for a solution I realised this might be better (from Textbook)

txp:recent_articles label=“Latest” limit=“7” break=“br” wraptag=“p” category=“tech” sortby=“Section” sortdir=“desc” /

but it still has the single category problem (I tried just adding more in there).

My question then is how do I state the tag to select the newest stories from selected categories?

Last edited by nanikore (2006-08-12 11:21:17)

Offline

#2 2006-08-12 13:26:35

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: Selecting from multiple catagories

You may need a plugin. Chh_article_custom (but also other plugins: I just use this) let you define category=“japan,tech,stuff”. Comma separated list. Built in tags don’t allow for multiple sections or multiple categories.

Bye

Z-

Offline

#3 2006-08-13 13:54:11

nanikore
Member
From: Tokyo, Japan
Registered: 2006-07-09
Posts: 11
Website

Re: Selecting from multiple catagories

Thanks, I’ll take a look and post back if i mess it up!

Last edited by nanikore (2006-08-19 14:37:04)

Offline

Board footer

Powered by FluxBB