Hi,
can anyone tells how Mobile page layout works? Which techinch uses to recognize the mobile device / os.
Tnx
Printable View
Hi,
can anyone tells how Mobile page layout works? Which techinch uses to recognize the mobile device / os.
Tnx
It's done by detecting the user agent:
\system\modules\core\library\Contao\Environment.ph p
https://github.com/contao/core/blob/...nment.php#L498
\system\config\agents.php
https://github.com/contao/core/blob/...fig/agents.php
If mobile, then the mobile layout gets used if available. You also can see the class "mobile" in the BODY tag.