Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Include all articles in category, but exclude some

Include all articles in category, but exclude some

Hi, I am using the recipe for including all articles in a category, but I need to exclude certain articles occasionally. Can I do that with another line of code? Here is what I am using....

if ( $content_genius->check("category_id = 53,61,46,52,41" ) ) return 133;



Thanks! Jamie

jamieandreas
Beginner Modder
ranks
useravatar
Offline
13 Posts
Administrator has disabled public posting

Re: Include all articles in category, but exclude some

Sure:

if ( $content_genius->check("category_id = 53,61,46,52,41" )
  and $content_genius->check("article_id = none of 101, 102, 103")
) return 133;

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Re: Include all articles in category, but exclude some

Thanks so much, that did it!

jamieandreas
Beginner Modder
ranks
useravatar
Offline
13 Posts
Administrator has disabled public posting

Re: Include all articles in category, but exclude some

Ah, gotta love JomGenius!

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5914
Total Posts Today:
1
User Info:
 
Total Users:
10814
Newest User:
lloyd56785
Members Online:
0
Guests Online:
117

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked