Templates, resizing existing pages

andyduncan
13 years, 2 months ago
Hey

I have a few questions about a couple of things that aren't making sense

The first is, i've created a separate template for my homepage on the iphone, It works in firefox when i use 'user agent switcher' add on, when i use an iphone simulator i get incorrect usage of mobile joomla, i know this is because of the template assigned to the menu item created, if i do not use this template and say use a default one, the display of the mobile site is not what i want. How do i get around this so my mobile site can display the template i wish?

The other question i have is i have existing pages and it will be a real hassle to create essentially new pages for something that already exist, i was wondering is there a part of mobile joomla that i ahve overlooked that can rescale existing pages to be formatted to the device viewing it

Thanks
dryabov
13 years, 2 months ago
1. Currently MJ doesn't support different mobile templates for different menu items. But you can add special conditions for homepage in the mobile template's index.php:
$MobileJoomla = MobileJoomla::getInstance();
if($MobileJoomla->isHome())
{
// homepage
}
else
{
// innerpage
}


2. MJ doesn't rescale pages, it just uses mobile templates to display website. So, any page should be "rescaled", but sometimes there maybe incorrect results with 3rdparty extensions because of hardcoded sizes.

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.