Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2007-04-27 15:41:20

douglgm
Member
From: Bristol
Registered: 2006-08-23
Posts: 182
Website

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

#5 2007-04-28 08:55:33

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

#6 2007-04-28 14:26:19

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

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

Board footer

Powered by FluxBB