No Code Attached Yet J3 Issue
avatar Meday
Meday
5 Nov 2019

Steps to reproduce the issue

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';
}

Expected result

Display in position-1 :
MyStyle1
MyStyle2

Actual result

Display in position-1 :
MyStyle2
MyStyle2

System information (as much as possible)

Joomla 3.9.12

Additional comments

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"/>

avatar Meday Meday - open - 5 Nov 2019
avatar joomla-cms-bot joomla-cms-bot - change - 5 Nov 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 5 Nov 2019
avatar Meday Meday - change - 5 Nov 2019
Title
Cannot output multiple with same position of different style
Cannot output multiple jdoc:incule with same position of different style
avatar Meday Meday - edited - 5 Nov 2019
avatar infograf768 infograf768 - change - 5 Nov 2019
Labels Added: J3 Issue
avatar infograf768 infograf768 - labeled - 5 Nov 2019
avatar Meday Meday - change - 5 Nov 2019
The description was changed
avatar Meday Meday - edited - 5 Nov 2019
avatar Meday Meday - change - 5 Nov 2019
The description was changed
avatar Meday Meday - edited - 5 Nov 2019
avatar alikon alikon - change - 7 Nov 2019
Title
Cannot output multiple jdoc:incule with same position of different style
Cannot output multiple jdoc:include with same position of different style
avatar joomla-cms-bot joomla-cms-bot - edited - 7 Nov 2019
avatar SharkyKZ
SharkyKZ - comment - 26 Feb 2020

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.

avatar brianteeman
brianteeman - comment - 23 Aug 2022

I agree with @SharkyKZ
If you want to achieve this you would create two modules in the same position with different styles.

This should be closed

avatar zero-24 zero-24 - change - 23 Aug 2022
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: ?
avatar zero-24 zero-24 - close - 23 Aug 2022

Add a Comment

Login with GitHub to post a comment