.. You may want to use the usual include line. Uncomment and adjust the path. .. include:: ../Includes.txt ============================= 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: |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, 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: Table of Contents ----------------- **`EXT: Mobile devices detection 1 <#__RefHeading__5708_1738894311>`_** **`Introduction 3 <#__RefHeading__5710_1738894311>`_** `What does it do? 3 <#__RefHeading__463_413120346>`_ **`Users manual 4 <#__RefHeading__467_413120346>`_** `Brief overview 4 <#__RefHeading__1013_614582091>`_ `Example 4 <#__RefHeading__1150_275225546>`_ `Important note 4 <#__RefHeading__1826_275225546>`_ **`Configuration 5 <#__RefHeading__31515_818911409>`_** .. _Introduction: Introduction ------------ .. _generated: ((generated)) ^^^^^^^^^^^^^ .. _What-does-it-do: 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: Users manual ------------ .. _generated: ((generated)) ^^^^^^^^^^^^^ .. _generated: ((generated)) """"""""""""" .. _Brief-overview: 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: 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: Important note ~~~~~~~~~~~~~~ IsTablet should always override settings from isMobile, because of tablet is recognised as mobile too. .. _Configuration: 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. .. ######CUTTER_MARK_IMAGES###### .. |img-1| image:: img-1.png .. :align: left .. :border: 0 .. :height: 44 .. :id: graphics5 .. :name: graphics5 .. :vspace: 57 .. :width: 161 .. |img-2| image:: img-2.png .. :align: left