This only applies to 3rd party modules, not core ones!
Let say for example you want to display a module in position X
on desktops, but on mobile, you want to display it in position Y
.
position-7
visible-desktop
position-8
visible-phone
Both modules display on large a viewport size (desktop)
Joomla: 3.4.8
PHP: 5.5
MySQL: 5.6
I'm aware of the space needed for a module class suffix. I'll give it a test on J3.5-beta 3
What HTML output are you getting? Which template and module chrome are you using?
Note about spaces, some module chromes have a space added before module suffix, e.g. https://github.com/joomla/joomla-cms/blob/staging/templates/protostar/html/modules.php#l47
Not sure if this was intended. Because none of system module chromes have this.
https://github.com/joomla/joomla-cms/blob/staging/templates/system/html/modules.php
Using the default Protostar template and the Inherited
mocChrome. I've also tried switching to the html5
modChrome.
Labels |
Added:
?
|
Tested on beta4 with protostar
Scenario1
Visible-desktop position8
Visible-phone position7
Works as intended
Scenario2
Visible-desktop position7
Visible-phone position7
Works as intended
Scenario3
Scenario1
Visible-desktop position7
Visible-phone position8
Works as intended
Note that although the module is not displayed on desktop it is still counted as existing by the logic in the template that decides if it should display the column so you do get an empty column. - This is a known issue what despite numerous attempts has not been resolved
Status | New | ⇒ | Information Required |
Category | ⇒ | Modules |
It has been 4 weeks since the last comment showing that there was no issue so I am closing this. If you have any further issues and can provide more information to replicate the issue it can always be reopened
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-04-19 18:09:49 |
Closed_By | ⇒ | brianteeman |
I cannot reproduce this on 3.5.0 Beta 3. Note that you must add a leading space before suffix class. The space is not seen in test instructions.