New answers tagged

0

The component is always dispatched before the modules. But you might want to reconsider your code. Such dependency doesn't sound like a good idea.


0

If you look at your active template, most of the cases in the file called index.php. You can find a tag to render the component: <jdoc: include type = "component" /> And some others to render the modules according to their position: <jdoc:include type="modules" name="top" style="xhtml"/> This one will ...


2

Your original coding attempt is repeatedly overwriting the $dataPoints variable inside of the loop -- this is why you only see the last iteration's data. To create the desired multidimensional array directly from the query's result set, here is the way to use column aliases and Joomla's query building syntax. $db = JFactory::getDbo(); $query = $db->...


0

solved by changing foreach($countMartabehName as $row) { $dataPoints = array( array("label"=> $row->MartabehName , "y"=> $row->$key) ); } to $dataPoints = array(); foreach($countMartabehName as $row){ array_push($dataPoints, array("label"=> $row->MartabehName , "y"=> $row->$...


1

After much experimentation I'm pretty sure it's not possible to achieve this without Javascript, but I did manage it this way: I added this code to the menu's main php file (about line 53 in the default.php override): if ($item!=parent) { $class .= ' single'; } Then in the template.js added this: let single = [...document....


Top 50 recent answers are included