Youjoomla Support Forums (http://www.youjoomla.com/joomla_support/index.php)
-   Joomla Tutorials (http://www.youjoomla.com/joomla_support/forumdisplay.php?f=28)
-   -   Collapse modules tutorial for Joomla (http://www.youjoomla.com/joomla_support/showthread.php?t=2)

neo 03-19-2007 12:09 AM

Collapse modules tutorial for Joomla
 
Any comments,please feel free to discus or just see the tutorial again http://youjoomla.com/content/view/16/33/

caputo737 03-20-2007 02:46 PM

Re: Collapse modules tutorial for Joomla
 
Thanks for the tutorial. Can you use this code to collapse a module if you used tables in your template? Thanks!

Jason

neo 03-21-2007 11:00 AM

Re: Collapse modules tutorial for Joomla
 
Sure you can just start with if statement on the top of the <table>
like this
Code:

<?php if (mosCountModules('left')) {?>
<table>
<tr>
<td>
<?php mosLoadModules('left',-2);?>
</td>
</tr>
</table>
<?php } ?>

basically everything that is after if
Code:

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

<?php } ?>
will disappear if the module is not published

caputo737 03-21-2007 12:29 PM

Re: Collapse modules tutorial for Joomla
 
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
http://www.juneauhotspot.com


All times are GMT -4. The time now is 04:25 AM.

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