Closed (duplicate)
Project:
Quick Tabs
Version:
7.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Feb 2012 at 17:42 UTC
Updated:
17 Sep 2013 at 03:29 UTC
Jump to comment: Most recent
Comments
Comment #1
webguyinternet commentedDitto, Looking for this functionality as well.
Comment #2
jcassano commentedAlso looking for this functionality. My guess is that it doesn't exist currently because with the accordion renderer is newer and with the normal quicktabs renderer it would be impossible to have no tab selected. So I think this needs to be added in as a feature specifically under the accordion renderer UI options.
Comment #3
Anonymous (not verified) commentedany plan to implement this as an option?
I did solve it temporarily by adding the following jQuery to my theme:
Comment #4
brandy.brown commentedI need this functionality as well. What do you mean you added it to your theme? Where exactly did you put that code? Thanks!
Comment #5
webguyinternet commentedThis solution solved it for me as well, but it starts out opened then closes. So it is a little annoying, but it works.
Where the javascript is located is dependent on your theme but most are in the {theme dir}/js/theme.js
You can just add the above code (replacing what needs to be replaced of course) at the end of the theme.js file.
Comment #6
jdonson commentedIMHO, I think that should be avalable across ALL drupal pages.
Closed by default is tighter high-level presentation.
Who wants to scroll 10 pages to the right module section? NOT I!
Comment #7
Cardo commentedWhat I've done until a real solution is implemented on the module (which I think is a must) is to add a tab at the beggining of the accordion set, with near-empty title and content, and then remove() it with jQuery (hiding it causes unexpected results and trigger-clicking shows all content on load and then animates a 'close').
That would do the trick, although often with some minor blinks.
Still waiting for the feature, though :)
Comment #8
dadderley commented@nathan6137
Thanks for this Nathan -- it is a good temporary fix.
Add me to the list of people wanting this to be a feature of the module.
Comment #9
neRok commentedMy simple solution to have my accordian collapsed by default was to make a tab (I called it Hidden for ease of use), set it to display a node, but dont give it a NID. I enabled 'Hide empty tabs', and set my Hidden tab to the default. When the page loads, the Hidden tab is not shown, and all the other tabs are collapsed.
Comment #10
dadderley commented@nathan6137
The jquery you have works very well, but it has the unfortunate side effect of mimicking a linked anchor. To stop this effect, I added this to the script:
$('html, body').animate({ scrollTop: 0 }, 0);Comment #11
trazom commented@neRok: This is a brilliant and elegant solution, thanks.
Comment #12
melandren commentedAdd my ditto to getting this into the module. Would greatly help streamline the general look.
Comment #13
socceronly commentedI too am definitely hoping this is implemented.
Comment #14
bradallenfisher commentedI would love to see this feature.
for now you can add this into a .js file and insert it into your theme
Comment #15
adrianodias commentedI would love to see this feature too!!
The following code solves the problem of accordion starts out opened then closes when loading a page.
btw: great module.
Comment #16
ultimateboy commentedThis was solved over in #1023378: Ability to have no active tab/accordion item and is available as of the latest development release.