Skip to content

Instantly share code, notes, and snippets.

@2dpi
Created June 13, 2012 11:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2dpi/2923583 to your computer and use it in GitHub Desktop.
Save 2dpi/2923583 to your computer and use it in GitHub Desktop.
Joomla - add module count to module chrome
<?php
// useful for multi-column layouts
$modulecount = count(JModuleHelper::getModules($attribs['name']));
echo $modulecount;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment