Learn about the top 2016 CMS trends. Read on.


Long-time client, Stonebriar Community Church, asked me to install the CW Mobile Redirect extension for them. Within a few minutes of installing and configuring cwmobileredirect via the TYPO3 Extension Manager, Stonebriar.org was redirecting to their mobile website version for mobile device users automatically.

As a bonus, cwmobileredirect offers mobile detection TypoScript user functions to help with pushing mobile specific CSS and other configuration changes, like the following.

page.headerData.1000 = TEXT
page.headerData.1000.value = <link href="/css/main.css" rel="stylesheet" type="text/css" />

[userFunc = user_isMobileForced]
	page.headerData.1000 = TEXT
	page.headerData.1000.value = <link href="/css/main_mobile.css" rel="stylesheet" type="text/css" />
[end]

I really liked how quick to install and easy to use CW Mobile Redirect TYPO3 extension is. I think you might find it just as useful.

References

Still stuck? Write us.

  • Viktor Livakivskyi

    Hi, Michael.

    Recently we also faced a problem, when we had to detect mobile devices and I also decided to use cwmobileredirect. But later we had to detect mobiles and tablets separately, so I’ve made a decision to switch from cwmobileredirect to Mobile_Detect: http://code.google.com/p/php-mobile-detect/
    We’ve created a simple extension, that adds two userFuncs, that may be used in conditions. These userfunc simply creating an instance of Mobile_Detect and call isMobile() or isTablet().
    Our benchmarking shows, that this code runs even faster, than quite big regexp from cwmobileredirect.

    So, you may try it as well :)

    • Serban

      Viktor,

      Have you published the Typo3 plugin based on Mobile_Detect class? I cannot find any plugin related to it in the Typo3 repository. I could put a link on the project’s page so people using Typo3 would know where to download it.