Can QuickTabs display the latest updated tab by default when page loaded?

deanli - March 14, 2009 - 04:12
Project:Quick Tabs
Version:6.x-3.x-dev
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

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

#1

Pasqualle - March 15, 2009 - 12:42
Version:6.x-2.x-dev» 6.x-3.x-dev

There 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..

#2

iKillBill2 - June 29, 2009 - 16:09

OMG, I want to this function badly...

#3

DizzyC - July 3, 2009 - 17:28

Oh 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.

 
 

Drupal is a registered trademark of Dries Buytaert.