I have tabs set up, and as a view, I have selected Tabs - Teaser List.

However the content doesn't tease. The full node content is displayed. The regular teaser view teases correctly, and so I am uncertain what the issue is. I have made a few minor edits to tabs.module:

function theme_tabset($element) {
$output .= '

';
$output .= $element['#children'];
$output .= '
    ';
    foreach (element_children($element) as $key) {
    if ($element[$key]['#type'] && $element[$key]['#type'] == 'tabpage') {
    $output .= '
  • '. $element[$key]['#title'] .'
  • ';
    }
    }
    $output .= '

';
$output .= '

';
return $output;
}

The ul class is changed and children is moved in front of the ul.

I have also made a couple of css changes, but I don't think those should affect the teasing. I have also tried to manually break the node, but still no teaser is displayed.

Please help.

Comments

Wim Leers’s picture

Project: Javascript Tools » Views Tabs
Version: 5.x-0.8 » 5.x-1.x-dev
Component: Tabs » Code

Filed against the wrong module. Moving to Views Tabs.

seanr’s picture

Category: support » bug

theme_views_tabs_display does not appear to be getting passed the $teasers parameter correctly and it defaults to false. I duplicated it as phptemplate_views_tabs_display and manually set it to true in the node_view call and I now get teasers instead of full nodes.

Mac Clemmens’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev

This is still an issue on 6.x-1.x-dev as well.

hefox’s picture

http://drupal.org/node/593244#comment-2103880 As stated there, $options['teaser'] doesn't exist, those fixes should fix it.

jdwfly’s picture

Priority: Critical » Normal
Status: Active » Fixed

Should be fixed with changes to latest dev. See...

#626170: Not working with Views 6.2.7?
and
#593244: does not pass view to node

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.