PHPackages                             marcel-mathias-nolte/contao-mobile-detection-content - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. marcel-mathias-nolte/contao-mobile-detection-content

ActiveContao-module[Utility &amp; Helpers](/categories/utility)

marcel-mathias-nolte/contao-mobile-detection-content
====================================================

MobileContent extension for Contao Open Source CMS

10.10.11(4y ago)17751[1 PRs](https://github.com/marcel-mathias-nolte/contao-mobile-detection-content/pulls)LGPL-3.0-or-laterPHPPHP &gt;=7.2

Since Jul 5Pushed 3y ago2 watchersCompare

[ Source](https://github.com/marcel-mathias-nolte/contao-mobile-detection-content)[ Packagist](https://packagist.org/packages/marcel-mathias-nolte/contao-mobile-detection-content)[ RSS](/packages/marcel-mathias-nolte-contao-mobile-detection-content/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (21)Used By (0)

Mobile Detection and Content (contao-mobile-detection-content)
==============================================================

[](#mobile-detection-and-content-contao-mobile-detection-content)

Based on bugbuster/mobiledetection-bundle and derhaeuptling/contao-mobilecontent. I merged some functionalities of both bundles as I couldn't get a good detection of mobile devices with derhauptlings bundle alone.

This extension lets you show or hide specific articles, content elements and frontend modules on mobile or desktop devices. Image fields are extended – you can now add an different image for the mobile devices.

It works out of the box by recognizing the visitor user agent and displaying the appropriate content.
For use with CDN that caches the pages you may want to enable a separate mobile domain though (see explanation below).

The extension is compatible with Contao 4.4 and newwer.

Toggle the content
------------------

[](#toggle-the-content)

To toggle the content you can either edit the element settings or simply use the icons available in the list view:

[![](docs/list-icons.png)](docs/list-icons.png)

Different mobile image
----------------------

[](#different-mobile-image)

To use a different image for mobile devices check `Different mobile image` on any elment with an image.

[![](docs/mobile-image.png)](docs/mobile-image.png)

Insert tags
-----------

[](#insert-tags)

#### ifmobile \[…\] endifmobile, ifndesktop \[…\] endifndesktop

[](#ifmobile--endifmobile-ifndesktop--endifndesktop)

The content between the start and and tag is skipped if it appears on a desktop page.

#### ifdesktop \[…\] endifdesktop, ifnmobile \[…\] endifnmobile

[](#ifdesktop--endifdesktop-ifnmobile--endifnmobile)

The content between the start and and tag is skipped if it appears on a mobile page.

Body classes
------------

[](#body-classes)

The body is extended with the class desktop, tablet or phone.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 73.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~87 days

Recently: every ~108 days

Total

20

Last Release

1581d ago

Major Versions

2.2.2 → 10.0.02020-11-02

PHP version history (2 changes)2.0.0PHP &gt;=5.4.0

10.0.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/fe1614023eb8f4e11d483390fcecb78f9edf2c344f34590e8db4288e2c09ad22?d=identicon)[marcel-mathias-nolte](/maintainers/marcel-mathias-nolte)

---

Top Contributors

[![qzminski](https://avatars.githubusercontent.com/u/193483?v=4)](https://github.com/qzminski "qzminski (39 commits)")[![complanar](https://avatars.githubusercontent.com/u/4706846?v=4)](https://github.com/complanar "complanar (13 commits)")[![akroii](https://avatars.githubusercontent.com/u/8830861?v=4)](https://github.com/akroii "akroii (1 commits)")

---

Tags

contentmobilecontao

### Embed Badge

![Health badge](/badges/marcel-mathias-nolte-contao-mobile-detection-content/health.svg)

```
[![Health](https://phpackages.com/badges/marcel-mathias-nolte-contao-mobile-detection-content/health.svg)](https://phpackages.com/packages/marcel-mathias-nolte-contao-mobile-detection-content)
```

###  Alternatives

[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3183.3k6](/packages/codefog-contao-news-categories)[terminal42/contao-node

Node bundle for Contao Open Source CMS

3172.5k4](/packages/terminal42-contao-node)[pdir/social-feed-bundle

Social feed extension for Contao CMS

1414.8k](/packages/pdir-social-feed-bundle)[dklemmt/contao_dk_mmenu

Implementation of mmenu as an extension for the Contao Open Source CMS.

1578.7k](/packages/dklemmt-contao-dk-mmenu)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
