DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

EXT: Mobile devices detection

Author:Christopher
Created:2010-12-18T19:57:23
Changed:2012-11-02T10:52:39.670000000
Classification:px_mobiledetect
Description:The keywords help with categorizing and tagging of the manuals. You can combine two or more keywords and add additional keywords yourself. Please use at least one keyword from both lists. If your manual is NOT in english, see next tab "language" ---- forEditors (use this for editors / german "Redakteure") forAdmins (use this for Administrators) forDevelopers (use this for Developers) forBeginners (manuals covering TYPO3 basics) forIntermediates (manuals going into more depth) forAdvanced (covering the most advanced TYPO3 topics) ----
Keywords:smartphone detection, tablet detection, mobile device detection, forDevelopers, forAdmins
Author:Documentation Team
Email:documentation@typo3.org
Language:en

img-1 img-2 EXT: Mobile devices detection

Extension Key: px_mobiledetect

Language: en

Version: 1.0.0

Keywords: smartphone detection, tablet detection, mobile device detection, forDevelopers, forAdmins

Copyright 2012, Alexander Tretyak, <Alexander.Tretyak@pixabit- interactive.de>

This document is published under the Open Content License

available from http://www.opencontent.org/opl.shtml

The content of this document is related to TYPO3

- a GNU/GPL CMS/Framework available from www.typo3.org

Table of Contents

`EXT: Mobile devices detection 1 <#__RefHeading__5708_1738894311>`_

`Introduction 3 <#__RefHeading__5710_1738894311>`_

What does it do? 3

`Users manual 4 <#__RefHeading__467_413120346>`_

Brief overview 4

Example 4

Important note 4

`Configuration 5 <#__RefHeading__31515_818911409>`_

Introduction

((generated))

What does it do?

This extension helps to detect visitor’s mobile device class (if that’s tablet or mobile device like smartphone). The main idea of creating of this extension was a possibility to have rendering for mobile devices different from rendering for tablets and different for desktops rendering.

Notice, that detection relies on external library called Mobile_Detect (see http://mobiledetect.net).

Users manual

((generated))

((generated))
Brief overview

This extension is quite simple to use. After installing it, you will get two new TypoScript conditions, which will help you to distinguish mobile phones and tablets.

Example
[userFunc = user_isMobile]
#some processing
page.100 = TEXT
page.100.value = |mobile|
[global]

[userFunc = user_isTablet]
#some processing
page.100 = TEXT
page.100.value = |tablet|
[global]
Important note

IsTablet should always override settings from isMobile, because of tablet is recognised as mobile too.

Configuration

After installing this extension, the workflow goes as follows — just set up invocation user_isMobile or user_isTablet methods, which are implemented in ext_localconf.php file of this extension. You can find example of this above.