Skip to content
  1. Extras
  2. MobileDetect
  3. System settings

System settings

Component settings use namespace mobiledetect and area md_main.

Where to change: Manage → System settings — filter by namespace mobiledetect.

On package upgrade existing values are not overwritten (transport creates keys only on first install).

Plugin

KeyTypeDefaultDescription
md_disable_plugincombo-booleanNoDisable MobileDetect plugin

When Yes, HTML tags, Fenom blocks, mobiledetect.device placeholder and cookie stop working.

KeyTypeDefaultDescription
md_use_cookiecombo-booleanYesRemember selected mode in a cookie
md_tablet_is_standardcombo-booleanNoTreat tablets as desktop: for HTML tags show <standard> content

The cookie uses the name from md_force_browser_variable (default browser). Writes are skipped in CLI and after response headers are sent.

Forced mode GET parameters

KeyDefaultDescription
md_force_browser_variablebrowserGET parameter name
md_force_browser_standardstandardValue for desktop
md_force_browser_tablettabletValue for tablet
md_force_browser_mobilemobileValue for mobile
md_force_browser_detectdetectClear cookie and auto-detect

Example URLs with default settings:

https://example.com/page?browser=mobile
https://example.com/page?browser=detect

HTML tags

KeyDefaultDescription
md_standard_nodestandardDesktop content tag
md_tablet_nodetabletTablet content tag
md_mobile_nodemobilePhone content tag

The plugin looks for <tag>...</tag> pairs in page HTML output on OnWebPagePrerender.