I’m writing below code in my node–type.tpl.php, but only empty page is loading when i load the node page.Can you please help in knowing my mistake. What i need to add to display quicktab and its corresponding viewmode content? my code is:
<?php $nid=$node->nid; $tabs['Home'] = array( 'title' => t('Home'), 'type' => 'node', 'nid' => $nid, 'viewmode_home' => TRUE, 'hide_title' => FALSE, ); $tabs['About'] = array( 'title' => t('About'), 'type' => 'node', 'nid' => $nid, 'viewmode_about' => TRUE, 'hide_title' => FALSE, ); $quicktabs['qtid'] = 111; //given a random number $quicktabs['tabs'] = $tabs; $quicktabs['style'] = 'Mac'; $quicktabs['ajax'] = FALSE; print theme('quicktabs', $quicktabs); ?>