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

Pasqualle’s picture

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

the feature is good, and it can be done.

Pasqualle’s picture

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

Moving new features to 3.x version

BenGman’s picture

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!

Pasqualle’s picture

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

bleen’s picture

@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:

$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);
Pasqualle’s picture

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

bleen’s picture

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

Pasqualle’s picture

yes, my English is complicated ;)

netw3rker’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)

This is covered in a couple of issues currently about creating tab specific ajax loading options