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.

 

I want to assign one template each to Home page, All articles and VM

I want to assign one template each to Home page, All articles and VM

please in my subject VM means VirtueMart
Hi,
please i need help ASAP, i have three templates;
Template 1: Default for all articles
Template 2: menu selective to show only home page
Template 3: also menu selective to show only Virtuemart and virtuemart links.
please i am new to php and dont have full understanding are per what to do make this work.
I love your plugin, great work. please can you help me archive this?

edeminang
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

Re: I want to assign one template each to Home page, All articles and VM

Hi edeminang,

This is easier with the Pro version, but here's how to do it with the free version.

1st rule for VM:

if ($option == "com_virtuemart") return true;

(then set the appropriate template in the SUCCEED action)

2nd rule for home page: (assuming this is the standard Joomla com_content home page, not a VM page):

if ($core_genius->check("pagetype = frontpage")) return true;

(then set the appropriate template in the SUCCEED action)

3rd rule for article pages only:

if ($core_genius->check("pagetype starts with article")) return true;

(then set the appropriate template in the SUCCEED action)


Hope that helps,
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
3313 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1667
Total Polls:
6
Total Posts:
5910
Total Posts Today:
1
User Info:
 
Total Users:
10144
Newest User:
leonard5412396
Members Online:
2
Guests Online:
230


Forum Legend:

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