Project:Quick Tabs
Version:6.x-3.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

First, I'd like to say this is a super awesome module as it is. Much thanks to all the developers and maintainers.

Second, I'd like to suggest an improvement on the AJAX settings. Currently, the AJAX settings:

Yes: Individual tabpages will be loaded at tab click.
No: All tabpages will be loaded at page load.

...apply to all tabs at once.

It would be nice if this can be taken to the next level - allow specific tabs to load on click or on page load.

This would be useful for site performance purposes. For instance, if I have many tabs - and some tabs have jQuery that must be loaded on pageload and some do not - I want my jQuery tabpages to load and the non-jQuery pages to not load.

What do you think?

Comments

#1

Version:6.x-2.0-rc1» 6.x-2.x-dev

the feature is good, and it can be done.

#2

Version:6.x-2.x-dev» 6.x-3.x-dev

Moving new features to 3.x version

#3

I am have created nested quicktabs programmatically and they work great. Is there a quicktab attribute (in php) I can assign to a tab to allow it to be the selected tab at page load (e.g. 'default' = true, or other)?

Thanks for this wonderful module!

#4

@BenGman: no, always the first tab is selected #460092: Default Tab

#5

@Pasqualle

Can you give an example of how this can be done?

I'm assuming that something like this should work, but I'm not sure of the syntax:

<?php
$tabs
['Recent'] = array(
   
'title' => 'Recently Added',
   
'type' => 'freetext',
   
'text' => "foo foo foo foo foo",
   
'load-with-page' => TRUE//  <---------- What should this be
 
);
 
$tabs['Popular'] = array(
   
'title' => 'Most Popular',
   
'type' => 'freetext',
   
'text' => "bar bar bar",
   
'load-with-page' => TRUE//  <---------- What should this be
 
);

 
$quicktabs['qtid'] = 'videos_' . $domain['label'];
 
$quicktabs['tabs'] = $tabs;
 
$quicktabs['style'] = 'default';
 
$quicktabs['ajax'] = TRUE;
  return
theme('quicktabs', $quicktabs);
?>

#6

@bleen18: no, ajax loading is not tabpage specific, yet

#7

I see .. I misread "the feature is good, and it can be done" to mean "it can be done now..." :)

#8

yes, my English is complicated ;)

nobody click here