Shape 5

Joomla Club Extensions => Vertical Accordion - Club => : sneadm September 28, 2015, 04:41:26 AM



: Collapsible option
: sneadm September 28, 2015, 04:41:26 AM
Is there a way to set the collapsible option to true? in the jquery call?


: Re: Collapsible option
: mikek September 28, 2015, 07:11:13 AM
Hello,

It was designed so that one is always open. I am not aware of a way to make them all collapsed.


: Re: Collapsible option
: sneadm September 28, 2015, 09:37:35 AM
I think you're using jquery although I'll admit I'm having trouble following the code.  Here is a link to the jquery website that describes the option.  https://jqueryui.com/accordion/#collapsible  I don't think this existed in the old mootools one but seems to now in jquery.  Is this what you're using?


: Re: Collapsible option
: mikek September 29, 2015, 07:19:01 AM
Hello,

It uses jquery but only for the effect itself of opening and closing. The actual function of class names, detecting clicks, which item is open, etc. is custom javascript. Changing this functionality would require custom programming, we don't provide those services. Looking over the code, I believe the initial accordion is controlled here if you want to try and modify it:

if(s5_va_accordion_current < s5_va_accordion_len - 1){
         s5_va_accordion_current++;
      }
      else{
         s5_va_accordion_current = 0;
      }   


You could probably remove all of that and just set it to:

s5_va_accordion_current = 100;

Which would set the current accordion to an ID that doesn't exist so none are open. I did not test it though.