You are here:Templates Club arrow Help and Support arrow Support Forums
Youjoomla Support
Welcome, Guest
Please Login or Register.    Lost Password?
Collapse modules tutorial for Joomla (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Collapse modules tutorial for Joomla
#3
neo
Admin
Posts: 2123
graph
User Offline Click here to see the profile of this user
Collapse modules tutorial for Joomla 1 Year, 4 Months ago Karma: 60  
Any comments,please feel free to discus or just see the tutorial again http://youjoomla.com/content/view/16/33/
 
Logged Logged  
 
Please mark your post as SOLVED if your issue is resolved. Thank you. To mark the post as solved , edit your first post title : NOTE FOR UNANSWERED POST: IF YOUR POST IS NOT ANSWERED WITHIN 48H PLEASE SEND ME AN EMAIL TROUGH OUR CONTACT FORM WITH SUBJECT UNANSWERED POST
  The administrator has disabled public write access.
#4
caputo737
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re: Collapse modules tutorial for Joomla 1 Year, 4 Months ago Karma: 0  
Thanks for the tutorial. Can you use this code to collapse a module if you used tables in your template? Thanks!<br /><br />Jason
 
Logged Logged  
  The administrator has disabled public write access.
#5
neo
Admin
Posts: 2123
graph
User Offline Click here to see the profile of this user
Re: Collapse modules tutorial for Joomla 1 Year, 4 Months ago Karma: 60  
Sure you can just start with if statement on the top of the &lt;table&gt;<br />like this<br />
Code:

&lt;?php if (mosCountModules(&#039;left&#039;)) {?&gt;<br />&lt;table&gt;<br />&lt;tr&gt;<br />&lt;td&gt;<br />&lt;?php mosLoadModules(&#039;left&#039;,-2);?&gt;<br />&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;/table&gt;<br />&lt;?php } ?&gt;
<br /><br />basically everything that is after if
Code:

&lt;?php if (mosCountModules(&#039;left&#039;)) {?&gt;
and before closing
Code:

&lt;?php } ?&gt;
will disappear if the module is not published
 
Logged Logged  
 
Please mark your post as SOLVED if your issue is resolved. Thank you. To mark the post as solved , edit your first post title : NOTE FOR UNANSWERED POST: IF YOUR POST IS NOT ANSWERED WITHIN 48H PLEASE SEND ME AN EMAIL TROUGH OUR CONTACT FORM WITH SUBJECT UNANSWERED POST
  The administrator has disabled public write access.
#6
caputo737
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re: Collapse modules tutorial for Joomla 1 Year, 4 Months ago Karma: 0  
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. <br /><br />Jason Caputo<br />http://www.juneauhotspot.com
 
Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop