Project-Id-Version: Trac 0.12
POT-Creation-Date: 2008-01-30 09:20+0100
PO-Revision-Date: 2010-07-19 23:05+0200
Last-Translator: Jeroen Ruigrok van der Werven <>
Language-Team: en_US <>
Plural-Forms: nplurals=2; plural=(n != 1)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Generated-By: Babel 0.9.6

Warning: Can't synchronize with repository "(default)" (Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.

Ticket #182 (closed improvement: fixed)

Opened 7 years ago

Last modified 7 years ago

Bypassing mobile version for tablets like ipad

Reported by: toif Owned by: sebastian
Priority: minor Milestone: 2.4
Component: home Version: 2.2
Keywords: mobile Cc:



I wonder if there's a way to bypass mobile version and go with the standard version on ipad or any similar tablet which is much more suitable for the standard view. Couldn't find an option to do that on home page..

Any suggestion?


Change History

comment:1 Changed 7 years ago by sebastian

  • Owner set to sebastian
  • Status changed from new to accepted

Currently, this option is not supported yet.

In the meanwhile you can replace in Controller/AppController.php at function beforeRender()

    if ($this->RequestHandler->isMobile()) {
      $this->viewClass = "Theme";
      $this->theme = "Mobile";


    if (!$this->Session->check('mobile')) {
      $this->Session->write('mobile', $this->RequestHandler->isMobile());
    if (isset($this->request->params['named']['mobile'])) {
      $this->Session->write('mobile', (bool) $this->request->params['named']['mobile']);
    if ($this->Session->read('mobile')) {
      $this->viewClass = "Theme";
      $this->theme = "Mobile";

Than you can switch the mobile device by url parameter mobile:1 for on, mobile:0 for off. Eg <phtagr url>/home/index/mobile:0 will show the normal theme.

comment:2 Changed 7 years ago by sebastian

  • Status changed from accepted to closed
  • Resolution set to fixed

Fixed in 74a33321

Note: See TracTickets for help on using tickets.