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.

 

MetaTepmlate PRO - iPad template - how to?

MetaTepmlate PRO - iPad template - how to?

Have your wonderful MetaTemplate PRO in use with 2 Languages and it works perfect!

Tell me the Steps to configure it to display my Templates for iPad.


I have two templates for iPad (two Languages)
so i would like to display the template for iPad (choosen by user Language). 

Best Regards

ukco
Beginner Modder
ranks
useravatar
Offline
6 Posts
Administrator has disabled public posting

Re: MetaTepmlate PRO - iPad template - how to?

still waiting for support about a question from paid version

ukco
Beginner Modder
ranks
useravatar
Offline
6 Posts
Administrator has disabled public posting

Re: MetaTepmlate PRO - iPad template - how to?

Hi ukco,
sorry it's taken an extra day to respond - been super busy.

Ok, the simplest way to set this up is to use 2 rules.

In the 1st rule, detect the 1st language, and detect ipad as the browser type.
In the SUCCEED action, set template to the 1st ipad variant.

In the 2nd rule, detect the 2nd language, and detect ipad as the browser type.
In the SUCCEED action, set template to the 2nd ipad variant.

When you detect 2 separate conditions in the same rule, BOTH have to succeed (an "and") in order for the rule to SUCCEED.


I think I understood your question right - please write back if not.

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

Re: MetaTepmlate PRO - iPad template - how to?

i have tryed this way also but i can not see any results

ukco
Beginner Modder
ranks
useravatar
Offline
6 Posts
Administrator has disabled public posting

Re: MetaTepmlate PRO - iPad template - how to?

have the same problems to dipsplay the "Search-Results" with a own template, nothing happes

ukco
Beginner Modder
ranks
useravatar
Offline
6 Posts
Administrator has disabled public posting

Re: MetaTepmlate PRO - iPad template - how to?

i have read that i have METATEPLATE PRO Plugin - i have just an "System - Metatemplate" Plugin - it there a Problem? at the first step i have install the free Version, after than i have install the payed Version

ukco
Beginner Modder
ranks
useravatar
Offline
6 Posts
Administrator has disabled public posting

Re: MetaTepmlate PRO - iPad template - how to?

Hi ukco,

MetaTemplate (Pro or free) has a plugin called "System - MetaTemplate". The Pro version has additional plugins: "Metatemplate - Extendedrules" and "Metatemplate - Virtuemartrules". It's fine to install MetaTemplate Pro over the top of the free MetaTemplate - it just adds the extra plugins and files and everything should work fine.

When you install MetaTemplate Pro, all the plugins should be automatically enabled.

Now, as to your problems with detecting pages and iPad:

I suggest that you turn on MetaTemplate "debug" mode. This is in the "Parameters" that are available on the MetaTemplate "Configuration" page and also on the "Rule Chain" page.

When Debug mode is enabled, you get extra output on your pages. This extra output shows you all the things that MetaTemplate is checking, and whether each rule succeeds or fails, and the action that is performed.

Once you have that, you could copy and paste that output into this forum thread and I can help you to identify what's going on.

Best regards,
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
3329 Posts
User info in posts
Administrator has disabled public posting

Re: MetaTepmlate PRO - iPad template - how to?

I have the language swith at iPas with is the same message like on the normaly browser, the iPad template is not active - just the language tepmlate:

for english:

        * METATEMPLATE DEBUG ON
        * Current date and time: "2011-04-27 11:48:30" in timezone "default"
        * Processing rule id 4 ("Deutsch")
        * - Language: "en" is not in the include list - failing
        * Started FAIL action for rule id 4
        * Finished FAIL action: default template not changed
        * Processing rule id 5 ("English")
        * - Language: "en" is in the include list - succeeding
        * Started SUCCEED action for rule id 5
        * Finished SUCCEED action: default template was set to "features_en"
        * Stopped processing as result of SUCCEED action at rule id 5 ("English")
        * Final template set to "features_en"



for german:

        * METATEMPLATE DEBUG ON
        * Current date and time: "2011-04-27 12:07:40" in timezone "default"
        * Processing rule id 4 ("Deutsch")
        * - Language: "de" is in the include list - succeeding
        * Started SUCCEED action for rule id 4
        * Finished SUCCEED action: default template was set to "features_de"
        * Stopped processing as result of SUCCEED action at rule id 4 ("Deutsch")
        * Final template set to "features_de"

ukco
Beginner Modder
ranks
useravatar
Offline
6 Posts
Administrator has disabled public posting

Re: MetaTepmlate PRO - iPad template - how to?

Ok, now we're getting somewhere. I'm glad there's a debug mode!

What this shows is that there's no check for the iPad template in your rules.

Take a look again at message #3 above. In it, I said that you need to include a check for iPad in the same rule as your language check. I'm guessing that you didn't do that.
If you did do that then there could be a bug in MetaTemplatePro, so can you please confirm?

Overall, here's what I think you want to do:

Rule 1: check for "de" and check for ipad. If found set the de_ipad (or whatever it's called) template in the SUCCEED action.

Rule 2: check for "en" and check for ipad. If found set the en_ipad template in the SUCCEED action.

If you have "desktop" templates for en and de, then create the following rules:

Rule 3: check for "de". If found, set the de_desktop template in the SUCCEED action

Rule 4: check for "en". If found, set the en_desktop template in the SUCCEED action.


I hope that will work for you now,

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

Board Info

Board Stats:
 
Total Topics:
1689
Total Polls:
6
Total Posts:
5941
Posts this week:
1
User Info:
 
Total Users:
5355
Newest User:
titus87954
Members Online:
3
Guests Online:
126


Forum Legend:

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