Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
For example, I have four tabs:
Tab1 | Tab2 | Tab3 | Tab4
By default, QT will display Tab1 when loaded. Sometimes there is no newly added or updated node in Tab1, but there is in other tabs, for example Tab3. Then, I wish Tab3 is displayed by default when page is loaded.
Is there an easy way to get this feature?
Thanks
Comments
Comment #1
PasqualleThere is a similar feature request: #299982: Random top tab
maybe we should create a new hook for selecting the first displayed tab. I do not know about an easy way, I think it requires a very specific code, which could not be part of the QT module..
Comment #2
iKillBill2 CreditAttribution: iKillBill2 commentedOMG, I want to this function badly...
Comment #3
DizzyC CreditAttribution: DizzyC commentedOh yes! Please!
I need this too!
I've used a rather nasty hack to achieve this functionality.
I have created a custom template for the nodes I'm using with Quicktabs (each tab holds a view with one node). I've added an html attribute with the timestamp of the view (
<div class="node" created="1246627302">
) and then I used jQuery to select the tab that holds the most recent node.It is a nasty hack and it doesn't solve my problem because i also have a mobile version witch does not suport Javascript.
So i subscribe to this request. A hook would be fine for a start.
Cheers.
Comment #4
TimAlsop CreditAttribution: TimAlsop commentedIt would be nice if the Smart Tabs (see http://drupal.org/project/smart_menus) module worked with this module. I think Smart Tabs uses a cookie to remember the last tab selected, and when you revisit the page it loads the tab which was last opened.
Comment #5
flyboynomad CreditAttribution: flyboynomad commentedI have the same issue going on with quick tabs.
Could you please tell me if you have any solution for this issue?
Quicktabs are having sample/sample?quicktabs_1=2, sample/sample?quicktabs_1=3
All are pointing to same page and Google says above are separate pages and needs unique page title's to each.
Urgent help request and would be really appreciated
thanks!
Comment #6
flyboynomad CreditAttribution: flyboynomad commented1.Quick fix : Add you URL's to robot.txt
example:
Disallow : ~/sample/sample?quicktabs_1=2
2.Quick fix : Add your QT url's to .htaccess and redirect them to main page.
This is what I have been doing and its working for me
Note: Google crawl will usually take 3-4 weeks to take off duplicate QT links of the webmaster tools so be patient. :D
Cheers!
Comment #7
Pasqualle@flyboynomad: I think your comments should be here: #354867: SEO: Add Canonical Tags to Quicktab Pages
this ticket is about remembering the last tab selected..
Comment #8
flyboynomad CreditAttribution: flyboynomad commentedMy bad Pasqualle, I was not paying attention.
Thanks for correcting me :D
Comment #9
netw3rker CreditAttribution: netw3rker commented