Welcome, Guest
Username Password: Remember me

Templates, resizing existing pages
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Templates, resizing existing pages

Templates, resizing existing pages 13 years, 2 months ago #5526

  • andyduncan
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
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

Re: Templates, resizing existing pages 13 years, 1 month ago #5626

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
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.
Last Edit: 13 years, 1 month ago by dryabov.
  • Page:
  • 1
Time to create page: 0.09 seconds

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.