Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-04-27 00:31:38
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
article_custom pulling articles from more than 1 category?
using article_custom to grab articles from a particular section & category… but would like to grab articles from a particular section & multiple categories…
is there a way to do this?
chh_article_custom did the trick but it doesn’t work too well on current install & the author appears to have let development lapse on the plugin – so would rather not use it
thanks
Offline
Re: article_custom pulling articles from more than 1 category?
I’m after exactly the same thing.
Offline
#3 2007-04-27 17:08:16
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: article_custom pulling articles from more than 1 category?
Check out this thread. It does not regard article_custom, but you could use if_article_category in the article form.
Last edited by els (2007-04-27 17:09:00)
Offline
#4 2007-04-28 03:27:43
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: article_custom pulling articles from more than 1 category?
cheers Els!
Offline
Re: article_custom pulling articles from more than 1 category?
If you have a large number of articles and the categories you want to display contain only a few articles, then this is an inefficient approach because it still pull all the articles from the database. A better solution would be to let the category attribute in article_custom accept a comma separated list of categories.
Offline
Re: article_custom pulling articles from more than 1 category?
If I remember correctly, also rss_suparchive (and related) plugin(s) allows for multiple sections/categories listing. I also have chh_article_custom working in some 4.04 installation. So you should be able to use one of them.
Z-
Last edited by Zanza (2007-04-28 14:29:08)
Offline
#7 2007-04-28 14:36:32
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: article_custom pulling articles from more than 1 category?
hadn’t thought of using rss_suparchive as replacement for article_custom in this instance… if you specify section & categories, plus a form… should work…
thanks Zanza… not sure if it’d be more efficient than using if_article_category in the article form but will compare
Offline