Frequently Asked Questions using Joomla content articles. iFAQ (former MooFAQ) is a FAQ Component for Joomla!™ which uses jQuery and Bootstrap to load Joomla Articles in Accordion format.

Product Page | Documentation Page

Expand All / Collapse All functionality

15 years 8 months ago #408 by douglas
Replied by douglas on topic Re:Expand All / Collapse All functionality
Dear Digingbil,

Our accordion effect is a little different. I'll try to make this modification for you tomorrow morning.

Regards,

Please Log in or Create an account to join the conversation.

More
15 years 8 months ago #406 by digingbil
Hi Douglas ,

Thanx for the reply!

Sure I can wait if that's the case. But you know clients can't wait :) And I recommended to them to buy the extension but now they came with this functionality request.

Anyway, I would appreciate some smaller hint on how can I achieve this if possible?

I was messing with this code placed in the /components/com_moofaq/views/categories/tmpl/default.php :
Code:
<div class="exp-coll-btn"> <script type="text/javascript"> window.addEvent('domready', function(){ var headings = $$('.panel h3'); var collapsibles = $$('.jpane-slider'); $('collapse_all').onclick = function(){ headings.each( function(i) { collapsibles[i].hide(); }); return false; } $('expand_all').onclick = function(){ headings.each( function(i) { collapsibles[i].show(); }); return false; } }); </script> <a id="expand_all" href="#">Expand All</a> | <a id="collapse_all" href="#">Collapse All</a> </div>

But Im receiving some errors in firebug :(

Thank you, and have a good day!

Please Log in or Create an account to join the conversation.

15 years 8 months ago #404 by douglas
Replied by douglas on topic Re:Expand All / Collapse All functionality
Dear Digingbill,

This is something that I can do for you, however tomorrow is a holiday here in Brazil and I'm going to be at a church conference until Sunday.

Can you wait until Tuesday?

Regards,

Please Log in or Create an account to join the conversation.

More
15 years 8 months ago - 15 years 8 months ago #403 by digingbil
Hello there,

Thanks for the awesome extension at first.

I got a 1 question thou:

While I was working for a client he wanted Expand All / Collapse All functionality implemented in the faq. Something like this: pr0digy.com/sandbox/mootools/slide-effect/

While I'm not new to mootools, still I wasn't able to figure out how to achieve that.

Any help on this highly appreciated!

Thank you very much!
Last edit: 15 years 8 months ago by digingbil. Reason: Further explanation

Please Log in or Create an account to join the conversation.

Time to create page: 0.219 seconds

Our Partners

For your web hosting needs we recommend Hostinger. Save 20% on any plan using this link.