Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » Chameleon / ChameleonLite
- » ChameleonLite
- » Redirect to the wrong template
Redirect to the wrong template
Redirect to the wrong template
Hello,
I test metatemplate and its works perfectly (i can navigate in the 4 steps in my store) but when i use metatemplate all my pages:
- Home
- Store
- Company
- Contact
use the Store template ...
Indeed, i have 4 differently templates and i don't understand how i can use correctly metatemplate to do this:
- Home template --> Home page
- Store template --> Store page
- Company template --> Company page
- Contact template --> Contact page
Unfortunetly i have this for the moment:
- Store template --> Home page
- Store template --> Store page
- Store template --> Company page
- Store template --> Contact page
Thank you very much for your reponse.
Re: Redirect to the wrong template
Hi Claire,
1 - can you just confirm if you are using MetaTemplate, or MetaTemplate Pro?
2 - at the beginning you say "it works perfectly" but then you describe that it doesn't work. What part of it does work, so far?
Thanks,
Stephen
Re: Redirect to the wrong template
Hello and thanks firstly for your reponse .
I use MetaTemplate because without it, the 4 steps order of my store doesn't works. (without metatemplate when i'm in the first step order of my store and when i click "next" (button), i'm redirect to the home page instead of the second steps order... )
With metatemplate it's fix this problem (i can navigate in 4 steps order of my store).
Now the problem is that every page of my website use the store template...
But, i have 4 templates who must be associate to 4 pages. Indeed, i want to do simply this:
- Home template --> Home page
- Store template --> Store page
- Company template --> Company page
- Contact template --> Contact page
At this moment i have this:
- Store template --> Home page
- Store template --> Store page
- Store template --> Company page
- Store template --> Contact page
p.s: sorry for my english
Re: Redirect to the wrong template
ok set up 4 MetaTemplate rules.
In the 1st, use this rule, then use the dropdown in the SUCCEED action to set the Home template. I guess you mean "Home" as in "the front page of your site, using the standard Joomla front page component".
if ( $core_genius->check("pagetype = frontpage") ) return true;
if you meant "the front page of virtuemart", use this rule instead:
$vm = JomGenius("virtuemart");
if ( $vm->check("pagetype = frontpage") ) return true;
In the 2nd, use this rule, then use the dropdown in the SUCCEED action to set the Store template:
if ( $option == "com_virtuemart" ) return true;
For the 3rd and 4th rules, they depend on what kind of pages the "company" and "contact" pages are. Are they articles? Is the Contact page a standard com_contact page? If you're not using SEF URLs, can you send the raw URLs for these 2 pages?
Best regards,
Stephen
Re: Redirect to the wrong template
Thank you very much for your reponse
Unfortunetely, for the moment it's doesn't work.
I test this with the beez template:
New rules
Title: "Home"
SUCCEED Actions
Set Template : beez
Site default menu Item: Home
Run PHP: return "beez";
I save and i have the store template in home page instead of the beez template...
Moreover, in Available Templates: i have the store template as the template default. So all my pages have this template .
About the content of my pages:
Home page content 4 modules
Store page content Virtuemart
Company page content articles
Contact page content 2 modules
I don't understand why it's doesn't work
Re: Redirect to the wrong template
claire33 wrote:
New rules
Title: "Home"
SUCCEED Actions
Set Template : beez
Site default menu Item: Home
Run PHP: return "beez";
Ok, there's the problem. If you want to target the front page of the site, don't use "site default menu item" in the Succeed action. That's not what the "default menu item" is all about.
Since you have MetaTemplate Pro, you should use the "Page type" selector (in the left column), or the Menu Item selector to select the front page of your site.
Also, in the "Available Templates", the radio button is a shortcut for setting the default template for the entire site. You may want to have this set to your basic site template (whatever that is), then just use the rules to set special templates for specific pages.
Hope that helps,
Stephen
Re: Redirect to the wrong template
Hi,
I don't have metatemplate pro but only metatemplate (1.5c (26 July 2010)).
So i don't see on this version the "Page type" selector.
Can i use metatemplate to do whant i want to do?
May i buy metatemplate pro ?
Thank you for your help
Re: Redirect to the wrong template
Oops, sorry, I don't know why I thought you were using MetaTemplate Pro...
So yes, if you want to purchase it (on this site) then you'll get all those extra options, and it's easy to set up.
If you are comfortable with some PHP, then you can instead used the rules that are in message [4] in this thread. That gives you some possibilities for the frontpage, and for all Virtuemart pages. But you never described what type of pages the other two are (contact page and company page). Are they articles? Or com_contact and an article? The exact PHP used to detect these is going to depend on what kind of pages they are.
For a reasonable price, MetaTemplate Pro will make it a lot easier to set these up, but we can go on discussing the free PHP version if you like :-)
Best regards,
Stephen
Re: Redirect to the wrong template
Ah oki i understand but i'm not very good in PHP
So to answer as your question:
Home page contains modules (HTML modules)
Store page contains virtuemart
Company page contains modules (HTML modules)
Contact page contains articles
Metatemplate can do what i want or i must buy Metattemplate Pro ?
Thank you
Re: Redirect to the wrong template
Hello
Is it possible to do this:
First step order (virtuemart) --> Store template
Second step order (virtuemart) --> Store template
Third step order (virtuemart) --> Store template
Fourth step order (virtuemart) --> Store template
For the moment i have this:
First step order (virtuemart) --> Store template
Second step order (virtuemart) --> home template
I can't go to the third step after the second because i'm on the home template.
- Index
- » Chameleon / ChameleonLite
- » ChameleonLite
- » Redirect to the wrong template
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5943
- Total Posts Today:
- 1
- User Info:
- Total Users:
- 7638
- Newest User:
- moner86658
- Members Online:
- 0
- Guests Online:
- 159
- 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