The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Mon Oct 06, 2008 10:33 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sat Mar 01, 2008 3:35 am
Posts: 1
Hi Folks,

Is there a module which a user can expand/collapse its contents?


Thanks in advance.

--
Diego Sueiro


Top
 Profile  
 
PostPosted: Sun Mar 14, 2010 9:09 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Mar 19, 2006 2:03 pm
Posts: 11
I am interested in the same thing. Have you found your answer Diego?


Top
 Profile  
 
PostPosted: Wed Apr 07, 2010 4:19 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Apr 07, 2010 3:38 pm
Posts: 1
Hi,

I am looking for the same thing... More specifically, I was hoping to find a plugin for disabling the right module position -- so that an article on a particular page can have a fuller screen view. Any advice?


Top
 Profile  
 
PostPosted: Sun Apr 11, 2010 8:21 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Jan 29, 2010 11:18 pm
Posts: 23
Location: behind a guitar or a computer
I, too, would love to know the answer to this one. Anybody?

_________________
www.ashleycreighton.com

Heartfelt pop music to make you feel better about being depressed.


Top
 Profile  
 
PostPosted: Fri May 21, 2010 1:41 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Mon Mar 30, 2009 11:27 am
Posts: 148
Location: www
Hey,
it's up to the specific module or specific template to provide such feature (like JA_Purity or JA_Purity_II). In JA_Purity there's even a feature to save the collapsed state in cookies but for some reason it's not being read back.

Today I've found JA Tabs That should be applicable to any item (content, module, etc.).

Piotr

_________________
work hard, party harder
http://smartwebstudio.com


Top
 Profile  
 
PostPosted: Mon Apr 18, 2011 10:58 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Apr 11, 2011 3:27 am
Posts: 19
Did anyone find a module like requested...that can expand and collapse content as needed.

Thanks.


Top
 Profile  
 
PostPosted: Thu Jan 19, 2012 8:47 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jan 19, 2012 8:32 pm
Posts: 5
Location: South Africa
You can use some simple php code to collapse the module position when it's empty.

Let's say your module position's name is "left" this is the code you might see in your template's index.php file:

Code:
<div id="left">
     <jdoc:include type="modules" name="left" style="xhtml" />
</div>

All you need to do is to replace that with this:
Code:
<?php if($this->countModules('left')) : ?>
   
     <div id="left">
          <jdoc:include type="modules" name="left" style="xhtml" />
     </div>

<?php endif; ?>

What that extra bit of code does is it tells Joomla to load that position only if it has at least one active module inside. Make sure your css allows the other columns to fill up that space by not giving them a set width and you'll be golden :)

P.S. remember to replace 'left' in the php code with whatever your div id is.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 



Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group