I'm just changing the title of my post, because I think, my php error come from the communication between "groupX" and "dynamic list".
More details :
- I create an "OFF" template with one field : dynamic list, to list article from specific category
- This field is on all view (admin, site, intro, content)
- I create an "OFF" template with one field : dynamic list, to list article from an other specific category
So, I have 2 "OFF" template
- I create an "ON" template, with 2 fields "GroupX" to call 2 "OFF" template.
In my template :
<?php $players = $cck->getValue('players_groupx'); ?>
<?php foreach($players as $content){
$rowIdP= $contentP['players_dynamic_list']->value;
$tableP= JTable::getInstance('Content', 'JTable');
$tableP->load($rowId);
$contentP = JHtml::_('content.prepare', $tableP->introtext);
echo $contentP;
}
?>
<?php $fans = $cck->getValue('fans_groupx'); ?>
<?php foreach($fans as $contentF){
$rowIdF= $contentF['fans_dynamic_list']->value;
$tableF= JTable::getInstance('Content', 'JTable');
$tableF->load($rowIdF);
$contentF= JHtml::_('content.prepare', $tableF->introtext);
echo $contentF; }
?>
The first foreach works, but not the second.
If I change the order... same result, only the first works.
How can I do ?