Shape 5

Joomla Club Extensions => Vertical Accordion - Club => : rgaller March 15, 2016, 04:47:21 PM



: Open another tab instead of first one
: rgaller March 15, 2016, 04:47:21 PM
Hi,

in my Accordeon example, the first tab ist open when opening the page. Is there a way to either close all tabs OR open another tab (eg the last one?).

http://www2.rgaller.bplaced.net/index.php/bewerbe

Thanks,
Roland


: Re: Open another tab instead of first one
: mikek March 16, 2016, 07:51:04 AM
Hello,

There is not a way to have them all close, the script is designed for one to always be open. You could change the one that is open but it will require some modifications to the extension:

1. Make sure that the auto duration is set to 0 in the module's backend.

2. Edit the module's helper.php file and find this at line 281:

document.getElementById("s5_va_accordion").style.display = "block";

Just above that add:

jQuery(s5_va_accordion_toggler[1]).trigger('click');

3. Change the "1" in the code above to the accordion you want opened. They are offset by 1, ie: 0 = slide 1, 1 = slide 2, etc.