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

How to expand all items as standard

More
3 years 10 months ago #25790 by skelp
Thanks, it works!
It would be ideal If you have more control over collapse/close items on different levels: categories, individual items, etc.

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

More
3 years 10 months ago #25788 by support
Dear Liesbeth,

No one has ever asked me for this feature. Right now I don't plan to include this feature, however you can easily accomplish that with a few lines of code.

Just create a JS file named custom.js with the following content:
Code:
jQuery( document ).ready(function($) { // Will trigger the Expand all button one second after the page has loaded // Fell free to change 1000 (one second) to 500 (half a second) or to 2000 (2 seconds) if needed. setTimeout(function(){ $('.expand-all').trigger('click');}, 1000); });

Then upload to /components/com_ifaq/assets/js/custom.js. iFAQ will include the custom.js file automatically.

I hope that helps.

PS: Out of topic: If you need to customize CSS you can create a custom.css file and upload it to /components/com_ifaq/assets/css/custom.css


Best regards,

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

More
3 years 10 months ago #25785 by skelp
Hi,

How can I expand all items as standard?

Kind Regards,
Liesbeth

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

Time to create page: 0.255 seconds

Our Partners

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