Add 1 module in position 1
templates/beez3/index.php :
<jdoc:include type="modules" name="position-1" style="MyStyle1"/>
<jdoc:include type="modules" name="position-1" style="MyStyle2"/>
templates/beez3/html/modules.php
function modChrome_MyStyle1( $module, &$params, &$attribs ) {
echo 'MyStyle1';
}
function modChrome_MyStyle2( $module, &$params, &$attribs ) {
echo 'MyStyle2';
}
Display in position-1 :
MyStyle1
MyStyle2
Display in position-1 :
MyStyle2
MyStyle2
Joomla 3.9.12
I use this for different display (mobile, screen...)
It can be interesting to use it also with diffrents attributes for multiple call of the same postion, same style.
For exemple:
<jdoc:include type="modules" name="position-1" style="MyStyle1" mobile="1"/>
<jdoc:include type="modules" name="position-1" style="MyStyle1"/>
Labels |
Added:
?
|
Title |
|
Labels |
Added:
J3 Issue
|
Title |
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-08-23 13:41:44 |
Closed_By | ⇒ | zero-24 | |
Labels |
Added:
No Code Attached Yet
Removed: ? |
I can see where this is coming from but I'm not sure if this is not intended. Having multiple instances of the same position in the same document seems wrong to me.