1. Is there any ability to apply accordian not to all blocks of right and left regions of my page, but to only one choosen block or for one region left or right?
2. Is it possiable to choose which part of accordian menu will in open state when page open (not only first by default)
Comments
Comment #1
pflame commentedPresently there is no configuration available to do this. This task is there in our next release plan. Presently this module look for regions with names left and right. If you put different name for your right or left region like left_side, right_side then accordion effect will not applied for those regions.
If you don't want to apply accordion effect for right region just rename your right region with right_side but sure we will provide configurations in the future releases.
This is also not available now, but you can do this by moving your intended block to first position. This is also there in our next release plan.
Thanks haver for raising these questions so that we put more focus on the next release.
Comment #2
BDS commentedHi, Thanks a bunch for this module, it's great!
Is it possible to click on an expanded parent element and have the block closed / collapsed? Or even somehow to a javascript code to trick the block to open up another block to close the current block? On a large block, it becomes a huge UI problem...
Comment #3
pflame commentedHi BDS,
You can make the block collapsible when you click on the title by using following code in your javascript.
You can activate any of the block using following javascript code
For more information check this link http://jqueryui.com/demos/accordion/
Comment #4
thf commentedExcuse the following newbie question: Where do I place the mentioned javascript code?
Edit:
Sorry, I tried to fiddle around in the "jquery_ui" folder not the "accordion blocks", found out, that i have to manipulate the accordion_init.js
Now it works.
Comment #5
2noame commentedThis looks like it should work, but for some reason it doesn't. Have tried a lot of variations too. Just can't seem to get the collapsible option set to true.
Comment #6
2noame commentedOkay I figured it out. The trick was also activating the alwaysOpen option.
So just add collapsible:true and alwaysOpen:false to your accordion_init.js file.
Thanks for the great module!
Comment #7
pflame commentedHi 2noame,
Actually Jquery UI accordion blocks widget provides more options. That information is available at http://jqueryui.com/demos/accordion/. Presently I am using the only 2 options, header and autoHeight. I am thinking of providing support to specify these options on the admin interface. I think It is better to provide default option values which apply to all regions and options specific to each region. Thanks for mentioning theme points.
Comment #8
dgdubois722 commented$('.accordion_blocks_container').accordion({header: "h2", autoHeight: false, collapsible: true, alwaysOpen: false});
That worked great for me. Now is there anyway you can make them all collapsed until the user clicks on the tab?
Comment #9
raffi commentedTry this
$('.accordion_blocks_container').accordion({header: "h2", autoHeight: false, collapsible: true, alwaysOpen: false});
$('.accordion_blocks_container').accordion("activate", false);
Comment #10
vm commentedDrupal 6 is no longer supported.