MobileDetect
mobiledetect
About
Компонент для создания мобильной версии страниц сайта.
At a glance
MODX 3 compatibility unknown. Based on our testing and community reports where available.
- Developer MODX.pro
- Latest release October 10, 2026 (24 days ago)
- First seen in SiteDash March 19, 2015 (11 years ago)
- License GPLv2
- Databases MySQL
| Changelog | |||
|---|---|---|---|
| modstore.pro |
2.1.1-pl |
October 10, 2026
24 days ago |
|
|
# Changelog<br /><br />
All notable changes to this project will be documented in this file.<br /><br /> The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),<br /> and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).<br /><br /> ## [2.1.1-pl]<br /><br /> ### Fixed<br /> - Transport package is built on MODX 2.8.8. Release 2.1.0-pl was built on MODX 3, so MODX 2.8 could not load `xPDO\Transport\xPDOObjectVehicle` and the install stopped before files were unpacked.<br /> - GitHub release workflow installs MODX 2.8.8, builds the zip there, and fails the job if the manifest still contains a namespaced vehicle class.<br /><br /> PHP 8.2+ is still required (`mobiledetectlib` 4.11). MODX 2.8 with PHP 7.4 stays on 2.0.2-pl.<br /><br /> ## [2.1.0-pl]<br /><br /> ### Added<br /> - Service API: `resolveDevice()`, `getDeviceType()`, `isMobile()`, `isTablet()`, `isDesktop()`.<br /> - Fenom modifier `|mobiledetect` for conditional output (`{if 'mobile' | mobiledetect}`).<br /> - Example chunk `tplMobileDetectSwitch` with links to force desktop, tablet, mobile or auto-detect mode.<br /><br /> ### Changed<br /> - Updated `mobiledetect/mobiledetectlib` to 4.11.x (`Detection\MobileDetect`).<br /> - Explicit MODX Revolution 2.8+ and MODX 3.x support; transport build uses PSR-4 bootstrap for `modPackageBuilder` on MODX 3.<br /> - Fixed Fenom block functions (`{mobile}`, `{phone}`, `{tablet}`, `{desktop}`, `{standard}`) returning empty string instead of implicit `null`.<br /> - Fixed repeated Fenom registration on `pdoToolsOnFenomInit` (memory exhaustion on large Fenom templates).<br /> - Fenom init guard uses `getTag('mobile')` instead of `getModifier('mobiledetect')`: pdoTools autoloads unknown modifiers as snippets, so the old check skipped block registration.<br /> - Plugin is packaged as non-static (`static = 0`): a static plugin with a media source caused memory exhaustion while Fenom was still initializing.<br /> - Wrapped `mobiledetectPluginService()` in `function_exists()` so the plugin can run on both `pdoToolsOnFenomInit` and `OnWebPagePrerender` in one request.<br /> - Skip cookie writes in CLI and after headers are sent (`canPersistCookie()`).<br /> - Fixed potential infinite recursion in `parseDocument()` when saved cookie mode equals the current pass.<br /><br /> ### Fixed<br /> - System setting `md_disable_plugin` default aligned with transport settings: plugin is enabled by default (`false`).<br /> - `md_tablet_is_standard` now remaps tablet → standard for snippet, Fenom blocks/modifier and service API (`resolveDevice`, `isDesktop`, `isTablet`), not only HTML tags.<br /><br /> ### Breaking Changes<br /> - Requires PHP 8.2+ (mobiledetectlib 4.11.x).<br /> - Internal detector class changed from `\Mobile_Detect` to `Detection\MobileDetect`. Custom code that called `getDetector()` and relied on the legacy class must update imports and API usage.<br /><br /> ### Dependencies<br /> - `mobiledetect/mobiledetectlib` ^4.11<br /> - `psr/simple-cache` ^1.0 || ^2.0 || ^3.0<br /><br /> ## [2.0.2-pl]<br /><br /> ### Added<br /> - Fenom blocks `{mobile}{/mobile}`, `{desktop}{/desktop}`, `{standard}{/standard}`, `{phone}{/phone}` and `{tablet}{/tablet}`.<br /><br /> ## [2.0.1-pl]<br /><br /> ### Changed<br /> - Mobile Detect library updated to 2.8.34.<br /><br /> ## [2.0.0-pl]<br /><br /> ### Added<br /> - Snippet `MobileDetect` for conditional output in templates.<br /><br /> ### Changed<br /> - Mobile Detect included via Composer.<br /> - Mobile Detect core updated to 2.8.28.<br /> - Test template is no longer installed by default.<br /><br /> ## [1.0.1-pl]<br /><br /> ### Changed<br /> - Updated Mobile-Detect core.<br /><br /> ## [1.0.0-beta]<br /><br /> ### Added<br /> - Initial release: HTML tag filtering (``, ``, ``) on `OnWebPagePrerender`, cookie-based mode persistence, force mode via GET parameter. |
|||
| modstore.pro |
2.1.0-pl |
September 2, 2026
2 months ago |
— |
| modstore.pro |
2.0.2-pl |
February 25, 2021
5 years ago |
— |
| modstore.pro |
2.0.0-pl |
December 11, 2017
8 years ago |
— |
| modstore.pro |
1.0.1-pl |
October 18, 2015
11 years ago |
— |
|
No matching releases. |
|||
We've also seen 1 unverified version of MobileDetect in use, but don't list those as we've been unable of confirming they are official releases from an official source.