Hello there! Welcome to Youjoomla Support Forums

We are Web Development Company specializing in Joomla Templates , Joomla Extensions and WordPress Themes development . You are not able to see some forum threads due to your memberhip level. To unlock all forums and special customer support please take few moments to signup . If you are just searching for free joomla templates , or free joomla extension support simply head to our Free Joomla Support forums and open a new thread. Our moderators will help you as soon as possible. To spead up the response time please take few seconds and go over forum rules

Have fun!

Collapse modules tutorial for Joomla

03-20-2007, 03:46 PM
# 2 (permalink)
Thanks for the tutorial. Can you use this code to collapse a module if you used tables in your template? Thanks!

03-21-2007, 12:00 PM
# 3 (permalink)
Sure you can just start with if statement on the top of the <table>
like this


<?php if (mosCountModules('left')) {?>
<?php mosLoadModules('left',-2);?>
<?php } ?>
basically everything that is after if


<?php if (mosCountModules('left')) {?>
and before closing


<?php } ?>
will disappear if the module is not published
03-21-2007, 01:29 PM
# 4 (permalink)
Ahh! Thank you. I am hacking and slashing my way through template design these days, so this is very useful. Hope your site does well.

Jason Caputo
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.

Members Login