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)18501[1 PRs](https://github.com/marcel-mathias-nolte/contao-mobile-detection-content/pulls)LGPL-3.0-or-laterPHPPHP &gt;=7.2

Since Jul 5Pushed 4y 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 1w 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 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

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

1681d 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

[markocupic/calendar-event-booking-bundle

Contao Calendar Event Booking Bundle

125.3k1](/packages/markocupic-calendar-event-booking-bundle)[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

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

Node bundle for Contao Open Source CMS

3078.1k6](/packages/terminal42-contao-node)[terminal42/notification_center

Notification Center extension for Contao Open Source CMS

80419.8k112](/packages/terminal42-notification-center)[terminal42/contao-mp_forms

An extension for Contao Open Source CMS to create multi steps forms using the form generator

2535.6k7](/packages/terminal42-contao-mp-forms)[codefog/tags-bundle

Tags bundle for Contao Open Source CMS

13100.3k13](/packages/codefog-tags-bundle)

PHPackages © 2026

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