News:

Looking for documentation? Take a look on our wiki

Main Menu

J173 + VM200RC3: Display template based on Joomla template?

Started by JtouchMobile.com, December 03, 2011, 05:52:13 AM

Previous topic - Next topic

JtouchMobile.com

Hi friends,

Is there any option from VM could helps our website display different layouts based on current selected template of Joomla?

For example:
- If I use 'bezz5', VM will use layout files from bezz5/html/com_virtuemart to present its layout
- But in some page or devices, let say iPhone, the whole page use 'jtouch' template, and there, VM will use layout files from jtouch/html/com_virtuemart instead of VM default files?

Thanks for any info
;)

Author of Jtouch - Mobile solution for Joomla & VirtueMart
http://www.jtouchmobile.com

JtouchMobile.com

Got it, just live thing as "use joomla default" in template setting

But seem that the code of change template in each view file:

$template = VmConfig::get('vmtemplate','default');
if (is_dir(JPATH_THEMES.DS.$template)) {
$mainframe = JFactory::getApplication();
$mainframe->set('setTemplate', $template);
}


not work on J173?

Fine if:
if (is_dir(JPATH_THEMES.DS.$template)) {
$mainframe = &JFactory::getApplication();
$mainframe->setTemplate($template);
}
Author of Jtouch - Mobile solution for Joomla & VirtueMart
http://www.jtouchmobile.com