Closed (outdated)
Project:
Quick Tabs
Version:
7.x-3.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Oct 2011 at 11:38 UTC
Updated:
10 Dec 2024 at 17:41 UTC
Jump to comment: Most recent
Hi,
by using the quicktabs as shown below, I realised that the by default set default_tab value 0 is simply not working because there is no tab with key 0.
So, all my tabs where shown. Shouldn't it take the key of the first tab as default_tab when all tabs have keys of the string?!
$tabs = array();
$tabs['overview'] = array('title' => t('Overview'), 'contents' => array('#markup' => $mycontent-x), 'weight' => 0);
$tabs['photos'] = array('title' => t('Photos'), 'contents' => array('#markup' => $mycontent-y), 'weight' => 1);
$tabs['videos'] = array('title' => t('Videos'), 'contents' => array('#markup' => $mycontent-z), 'weight' => 2);
print render(quicktabs_build_quicktabs('qt-test', array(), $tabs));
greetings
ifux
Comments
Comment #1
smustgrave commentedWith D7 EOL approaching in a month I'm starting to triage the D7 side of quicktabs queue. This doesn't appear to have any code so believe this may not make it, sorry! Thanks though!
If still an issue or needed for 4.0.x (latest branch) feel free to reopen