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.

 

How to asign a template for all articles of a catelogy

How to asign a template for all articles of a catelogy

I use  MetaTemplate.
I can't find a var to do this.
I tried the following, but failed:
if ( $catid  == 40 )/* 40 is the id of a category */
    return true;

And how about the section?

tdchen
Beginner Modder
ranks
useravatar
Offline
7 Posts
Administrator has disabled public posting

Re: How to asign a template for all articles of a catelogy

aha! I found the answer in the previous question.

tdchen
Beginner Modder
ranks
useravatar
Offline
7 Posts
Administrator has disabled public posting

Re: How to asign a template for all articles of a catelogy

Something like this?

if ($content_genius->check("category_id = 40")) return true;

and for sections:

if ($content_genius->check("section_id = 50")) return true;


Cheers,
Stephen

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
3314 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1685
Total Polls:
6
Total Posts:
5912
Total Posts Today:
4
User Info:
 
Total Users:
11504
Newest User:
toko solo
Members Online:
0
Guests Online:
131

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