Name: Device Specific Content (DSC)
Version: 6.0.1.0-PRO (Joomla! 6) / 5.2.3.0-PRO (Joomla! 5) / 4.2.1.0-PRO (Joomla! 4)
Typ: Plugin
Lizenz: GPLv3
Beschreibung: Mit diesem Plugin können HTML-Inhalte gerätespezifisch ausgeliefert werden. Serverseitige Filterung über den User Agent.
Download: DSC - Device Specific Content Downloads
Mit diesem Plugin können HTML-Inhalte gerätespezifisch (Mobil, Tablet und Desktop) ausgeliefert werden!
Mit diesem Plugin können HTML-Inhalte gerätespezifisch ausgeliefert werden. Der Vorteil dabei ist, dass die Inhalte bereits auf dem Server aufbereitet werden und somit nicht erst komplett an den Client übertragen werden müssen. Beim responsiven Webdesign werden alle Inhalte an den Browser transferiert und anschließend mittels JavaScript- und CSS-Anweisungen verarbeitet, abhängig von der Auflösung des Geräts. Dabei werden oftmals Inhaltsbereiche komplett ausgeblendet (oder manipuliert), vor allem auf einem mobilen Gerät. Trotzdem entsteht unnötiger Traffic, sowohl für den Besucher als auch für den Webserver. Werden unnötige Inhalte, wie z.B. eine Sidebar mit Videos oder Bilder, bereits vorher rausgefiltert, dann entfällt der aufwendige Lade- und Renderingprozess, was die Performance der Website stark verbessert.
Device Specific Content kann global im kompletten Frontend verwendet werden. Für die Benutzung in einem Editor (z.B. beim Schreiben eines Artikels oder bei einem Custom HTML Modul) kann eine einfache Syntax benutzt werden. Die Syntax kann überall verwendet werden, wo eine HTML Ausgabe für den Client generiert wird. Entwickler können über die API das Gerät des Besuchers abfragen und direkt in ihrem Code verwenden.
Features
- Optimierte, gerätespezifische Ausgabe aller HTML Inhalte
- Serverseitige Filterung der Inhalte
- Template-Stil abhängig vom Gerät (PRO)
- Nutzung über einfache Syntax oder über API-Aufruf (für Code)
- Erkennung von Mobil (Smartphone), Tablet und Desktop
- Nutzung einer leichtgewichtigen Erkennungsklasse (Mobile Detect)
- Sprachen: Deutsch und Englisch
Installation
Das Plugin übers Backend installieren und unter Erweiterung - Plugins - System - Device Specific Content aktivieren. Keine weiteren Einstellungen notwendig, das Plugin wird über die Syntax oder dem API-Aufruf ausgeführt.
Benutzung:
Hinweis: Die Syntax kann überall verwendet werden, wo eine HTML Ausgabe generiert wird (Front- und Backend). Für die korrekte Spezifizierung der Geräte wird das Skript Mobile Detect verwendet. Das Skript gibt es auf GitHub.
Die Erkennung des Clients erfolgt über den User Agent im HTTP-Request, dafür wird die leichtgewichtige Erkennungsklasse verwendet. Es wird zwischen Mobil, Tablet und Desktop unterschieden.
Mobil - {(!)mobile}...{/mobile} (Hier wird das englische Wort mobile verwendet!)
{mobile}Das wird nur in einem Mobile-Client angezeigt{/mobile}
{!mobile}Das wird überall außer in einem Mobile-Client angezeigt{/mobile} Tablet - {(!)tablet}...{/tablet}
{tablet}Das wird nur in einem Tablet-Client angezeigt{/tablet}
{!tablet}Das wird überall außer in einem Tablet-Client angezeigt{/tablet} Desktop - {(!)desktop}...{/desktop}
{desktop}Das wird nur in einem Desktop-Client angezeigt{/desktop}
{!desktop}Das wird überall außer in einem Desktop-Client angezeigt{/desktop} API-Aufruf (im Code - für Entwickler)
Mobil - isMobile()
if(PlgSystemDeviceSpecificContent::isMobile()) {...}
if(PlgSystemDeviceSpecificContent::isNotMobile()) {...} Tablet - isTablet()
if(PlgSystemDeviceSpecificContent::isTablet()) {...}
if(PlgSystemDeviceSpecificContent::isNotTablet()) {...} Desktop - isDesktop()
if(PlgSystemDeviceSpecificContent::isDesktop()) {...}
if(PlgSystemDeviceSpecificContent::isNotDesktop()) {...} Die Erkennung kann auch verwendet werden, wenn das Plugin deaktiviert ist. Dafür muss die Plugindatei vorher inkludiert werden:
if(!JPluginHelper::isEnabled('system', 'devicespecificcontent')) { require_once JPATH_PLUGINS.'/system/devicespecificcontent/devicespecificcontent.php'; } Changelog
Letzte Aktualisierung
Version 6.0.1.0-PRO - 2026-04-25
- + Dependency update applied – the bundled
mobiledetect/mobiledetectliblibrary was updated from version4.8.09to4.10.0. - + General code maintenance and optimisations to ensure consistent quality and stability.
- ^ Security token handling relaxed and improved – blocked license states no longer modify the extension status or stored configuration data. Instead, the extension configuration remains untouched, and users are only redirected with an error message, resulting in a safer and less invasive handling process.
Version 6.0.1.0-PRO - 2026-04-25
- + Dependency update applied – the bundled
mobiledetect/mobiledetectliblibrary was updated from version4.8.09to4.10.0. - + General code maintenance and optimisations to ensure consistent quality and stability.
- ^ Security token handling relaxed and improved – blocked license states no longer modify the extension status or stored configuration data. Instead, the extension configuration remains untouched, and users are only redirected with an error message, resulting in a safer and less invasive handling process.
Version 6.0.0.0-PRO - 2025-11-17
- + First Pro release for Joomla! 6.x based on DSC Pro version 5.2.3.0-PRO
- + The plugin "Behaviour - Backward Compatibility 6" is not required. The extension only uses supported classes in Joomla! 6.
Version 5.2.3.0-PRO - 2025-10-12
- + General code maintenance and optimisations to ensure consistent quality and stability.
Version 5.2.2.0-PRO - 2025-07-12
- + Code optimisations.
- ^ Updated custom field ProSecurityTokenField.
Version 5.2.1.0-PRO - 2025-05-16
- + Code improvement - Added named arguments for internal functions to improve code readability and flexibility. This allows parameters to be passed by name in any order without affecting functionality.
- ^ Upgraded nikic/php-parser to version v5.4.0 for the internal build process.
- ^ Updated custom field ProSecurityTokenField.
Version 5.2.0.0-PRO - 2025-01-06
- + Increased technical requirements for Joomla! 5: Increasing Technical Requirements 2025 - Core & PHP for Joomla! Pro Extensions
- + Optimising code to meet new requirements can enhance its quality, performance, and security.
- + Updated Mobile Detect to version 4.8.09.
Version 5.1.1.0-PRO - 2024-10-26
- ^ Updated how the tablet type is detected with the latest Mobile Detect version 4.x since most tablet user agents are now also classified as mobile types in the script. Thanks to Michael K. for reporting it!
- ^ Upgraded nikic/php-parser (v5.0.2 => v5.3.1)
Version 5.1.0.0-PRO - 2024-05-28
- + Subscriber Interface: The plugin has been rewritten to utilise the subscriber interface, enhancing its integration and performance capabilities.
- + Improved Pro Security Token validation check. The Pro package contains a token file with an individual security token linked to the user account that is checked against the validation server for authenticity. If the file is missing or the token is invalid, you cannot edit the settings and use the extension. The Pro Security Token field has been extended to handle incorrect tokens and blocked accounts. If you encounter an error message related to the token, download the Pro version with your Pro subscription from the linked download page and install it again!
- Attention: The Pro extension will not work correctly if the token file or custom field is missing or modified. Never edit or remove the files to ensure correct functionality.
- + Updated Mobile Detect to version 4.8.06.
- # Updated Device-Specific Module Loading feature to work correctly with the latest Joomla! 5 version.
Version 5.0.0.0-PRO - 2023-11-17
- + First Pro release for Joomla! 5.x based on DSC Pro version 4.2.0.0-PRO
- + The plugin "Behaviour - Backward Compatibility" is not required. The extension only uses supported classes in Joomla! 5.
- + Updated Mobile Detect to version 4.8.04.
Version 4.2.1.0-PRO - 2024-07-30
- Increased technical requirements for Joomla! 4: Increasing Technical Requirements 2024 - Core & PHP for Joomla! 4 Pro Extensions.
- ^ Updated the installation script to enable the uninstall process in higher core versions.
- ^ Updated Mobile Detect to version 3.74.3.
Version 4.2.0.0-PRO - 2023-10-04
- + Device-Specific Module Loading: Easily add device specificity to your modules by appending a module class suffix (Advanced -> Module Class). Allows for more granular control over which modules are loaded depending on the device type. Reduces unnecessary loading of irrelevant modules on devices where they aren't needed or optimised for, ensuring faster load times and a smoother user experience.
- Available Parameters
- isMobile: Detects if the user's device is a mobile phone and loads the respective module.
- isNotMobile: Does the opposite, ensures the module does NOT load on mobile devices.
- isTablet: Determines if the user's device is a tablet, subsequently loading the designated module.
- isNotTablet: Ensures the module will not load when accessed from a tablet.
- isDesktop: Checks if the user's device is a desktop and loads the appropriate module.
- isNotDesktop: Makes sure the module won't load on desktop machines.
- + The installation script has been updated to include a check for the highest compatible version of Joomla! to avoid any problems caused by using incompatible core versions.
Version 4.1.0.0-PRO - 2023-04-14
- Increased technical requirements for Joomla! 4: Increasing Technical Requirements - Core & PHP for Joomla! 4 Pro Extensions.
- + Code optimisations.
- ^ Updated Mobile Detect to version 3.74.0.
Version 4.0.3.1-PRO - 2022-11-20
- ^ Updated Mobile Detect to version 2.8.41.
Version 4.0.3.0-PRO - 2022-11-08
- + Added Style depending on device feature. With this option, you may set the template style depending on the device.
Version 4.0.2.0-PRO - 2022-09-15
- + Added Pro Security Token validation check. The Pro package contains a token file with an individual security token linked to the user account and checked against the validation server for authenticity.
- ^ Multiple internal code optimisations.
Version 4.0.1.1-PRO - 2022-08-10
- ^ Updated Mobile Detect to version 2.8.39
Version 4.0.1.0-PRO - 2021-11-11
- + Added the built-in Download Key Manager support to enter your Pro Update ID without installing the update helper plugin.
Important: Please copy your personal Pro Update ID using the second copy button in the Pro ID Manager and enter the key in System - Update - Update Sites - Select the entry of the Pro extension and enter the ID into the Download Key field. - ^ Code optimisations
Version 4.0.0.0-PRO - 2021-08-27
- + First Pro release for Joomla! 4.x based on DSC Pro version 3.1.5.0-PRO
Version 3.1.5.0-PRO - 2021-06-17
- ^ Maintenance release
- ^ Changed the version number specification. The first number stands for the supported major Joomla! version. The following three numbers follow the Semantic Versioning Specification (SemVer), as it used to be previously.
- ^ Code optimisations
Version 3.1.4-PRO - 2021-03-08
- ^ Updated Mobile Detect to version 2.8.37
Version 3.1.3-PRO - 2021-01-24
- ^ Updated language files
- ^ Improved class_exists check for namespaced class Editor
Version 3.1.2-PRO - 2021-01-17
- ^ Maintenance release
- ^ Updated custom field
- ^ Code optimisations
Version 3.1.1-PRO - 2020-01-24
- First release with increased technical requirements: Increasing Technical Requirements - Joomla! Core & PHP for Pro & Free Extensions
- ^ Updated Mobile Detect to version 2.8.34
Version 3.1.0-PRO - 2019-02-17
- + First Pro release based on DSC version 3.0.10
- ^ Updated Mobile Detect to version 2.8.33
Version 3.0.11 - 2019-06-23
- + Custom Field - Pro Button
- ^ Updated Mobile Detect to version 2.8.33
- ^ Updated project page URL
Version 3.0.10 - 2018-07-23
- ^ Updated Mobile Detect to version 2.8.32
- ^ Updated Custom Fields
Version 3.0.9 - 2017-12-27
- ^ Updated Mobile Detect to version 2.8.30
Version 3.0.8 - 2017-08-31
- ^ Updated Mobile Detect to version 2.8.26
- ^ Updated custom field krtitle to 3.3.0
Version 3.0.7 - 2017-08-01
- ^ Updated Mobile Detect to version 2.8.25
- ^ Small code optimization
Version 3.0.6 - 2017-01-02
- + Added helper functions: isNotDesktop, isNotTablet and isNotMobile
- ^ Updated Mobile Detect to version 2.8.24
Version 3.0.5 - 2016-05-17
- ^ Updated Mobile Detect to version 2.8.22
Version 3.0.4 - 2016-04-19
- ^ Updated Mobile Detect to version 2.8.21
Version 3.0.3 - 2016-04-03
- ^ Updated Mobile Detect to version 2.8.20
- ^ Updated custom field
Version 3.0.2 - 2015-12-28
- ^ Updated Mobile Detect to version 2.8.19
- ^ Updated language files
Version 3.0.1 - 2015-10-12
- ^ Includes detection script only if detection class is not instantiated yet to avoid a Fatal Error - Thanks to Franz Wohlkönig for reporting it
- ^ Loads the detection class only if the syntax is used
Version 3.0.0 - 2015-10-10
+ First release for Joomla! 3.x - Many thanks for the detection script Mobile Detect to Serban Ghita (@serbanghita) and also Joe Campbell (@heyjoecampbell) for his inspiration and great input.
Download
Übersicht über alle Downloads zu dieser Erweiterung: DSC - Device Specific Content Downloads