@media

Search
Other Pre-Sale questions
Forum

@media

marvays's Avatar marvays
Can Advanced Module Manager PRO display modules using @media ...?

For example, I want to display the module when:
@media only screen and (max-device-height: 992px) and (orientation: portrait)

If not, take it as a topic for expansion 🙂
Thank you.
Peter van Westen's Avatar Peter van Westen ADMIN
No, this can not and will not be possible through Advanced Module Manager.
Advanced Module Manager works on the server-side level (PHP).
PHP cannot see what the screensize of the visitor is. That can only be read on the client-side. So via CSS or javascript.

You can hide modules via CSS by simply giving them a class name and adding the necessary CSS to handle that.
But that will not prevent the module from being rendered on the page. It just hides it.
Please post a rating at the Joomla! Extensions Directory
marvays's Avatar marvays
Good. How does desktop / tablet / mobile device recognition work? Is it possible via php?
Peter van Westen's Avatar Peter van Westen ADMIN
That works based on the browser's 'user agent string'. And yes, Advanced Module Manager has the assignments for that.
Please post a rating at the Joomla! Extensions Directory
You can only post on this forum if you log in