Hi.
I'm trying to find a way to check where a module is published and store this as a variable. Ideally, I'd like to do this in a template override.
For example, I'd like to extract and store the module position as, say, $modulePosition, and then do something like this;
if ($modulePosition == 'menu' ) {
/*do this
}
But the problem is, I can't seem to find a way to do it. getModules($position) is listed in the docs, but I can't seem to find a way to get it to work.
Can anyone help? Is this even possible?
Thank you
**edit: ideally, I'd like this to work in J!3.0 too. But for now, 2.5 is my priority.**
**edit again - I posted this in the Joomla Forums before I saw the notice about this group. So, sorry for the double post. **