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

Opening a specific FAQ item by the article ID?

More
12 years 7 months ago #11782 by cppl
LOL :laugh: Of course, my way throws out the initial index position - I didn't pay enough attention to the little "=" after the ">".

Cheers

Craig

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

12 years 7 months ago #11768 by douglas
Dear Craig,

Thanks for the fix, but it did not work on my tests if the anchor (#) points to the first FAQ item, so I've changed the if statement for this:
Code:
if(typeOf(openArticleId) == 'number' && (openArticleId >= 0)){

Best regards,

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

More
12 years 7 months ago - 12 years 7 months ago #11766 by cppl
Hi Douglas,
we've identified a bug in the
Code:
site/helpers/slider.php
code relating to the unfolding by Article ID.

On line 207 you have:
Code:
if(openArticleId >= 0){ collapsibles[openArticleId].toggle(); }

but you initialise it on line 140 as:
Code:
var openArticleId = null

If a menu links to the Category without an #article-id-NN being present then openArticleId can still be null which throws an error and halts JS execution on the page (like menus, galleries etc).

Our fix was to change line 207 to:
Code:
ifBoolean(openArticleId)){

Which will return FALSE for null or 0 values.

Cheers

Craig
Last edit: 12 years 7 months ago by cppl.

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

12 years 7 months ago #11695 by douglas
Dear Craig,

Many thanks for the review!

Best regards,

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

More
12 years 7 months ago #11689 by cppl
Thanks Douglas brilliant as usual.

p.s. I was mortified to find out that we hadn't left a review previously of MooFAQ - so I've rectified that this morning.

Cheers

Craig

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

12 years 7 months ago #11665 by douglas
Dear Craig,

Package updated! You may now download directly from:
ideal.fok.com.br/purchase-and-download-e...s.html?tpl=purchases

Best regards,

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

Time to create page: 0.257 seconds

Our Partners

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