Closed (duplicate)
Project:
Views Slideshow
Version:
5.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Nov 2008 at 13:07 UTC
Updated:
10 Jul 2009 at 05:24 UTC
I have been looking for the past few days for a way to display multiple nodes (say 3 nodes) at one time in the "single frame" mode of the slideshow. (I wanted to display 3 event type teasers at a time a that fade in and out until all are displayed.)
I thought that I could change it by adding my code to the template file but it did not work. Can anyone point me in the correct direction or give me some pointers?
(PS I do not want to use the thumbnail hover, I just want a very small block with fading nodes).
function mytheme_views_slideshow_view_nodes($view, $nodes, $type, $teasers = false, $links = true) {
$items = array();
$group_nodes=0;
foreach ($nodes as $n) {
if ($group_nodes==0){
$node = node_load($n->nid);
$items[] = node_view($node, $teasers, false, $links);
}
else {
$node .= node_load($n->nid);
$items[] .= node_view($node, $teasers, false, $links);
}
$group_nodes++;
if ($group_nodes>3){
$group_nodes=0;
}
}
return theme('views_slideshow_slideshow', $view, $nodes, $type, $items);
}
Comments
Comment #1
naught101 commented#484960: Display more than one item at once (grid/table)