Here is the code I use to count modules in joomla, to see if it’s available or not.
<?php if ($this->countModules( 'right' )) : ?>
Now I want the contrary of this, like, when the module is not set..
Should I use something like:
<?php if (!$this->countModules( 'right' )) : ?>
I mean, what should I use in order to achieve it? I suppose, well not suppose but the way I wrote is for sure wrong.
checks for
trueand its opposite is this
it checks for
falseworking example http://codepad.viper-7.com/W2Am6k