- In template.php of the theme, in the function mytheme_preprocess_views_slideshow_ddblock, after this line:
$slider_items[$key1]['slide_node'] = base_path() . 'node/' . $result->nid;
Add the following code, to add the node id as a template variable:
$slider_items[$key1]['slide_nid'] = $result->nid;
- In views-slideshow-ddblock-cycle-block-content-[slideshow_theme_name].tpl.php print the node by adding these lines:
<?php
$node= node_load($slider_item['slide_nid']);
print node_view($node);
?>
This snippet is made by: MMusashi
Recent comments
2 days 4 hours ago
2 days 7 hours ago
3 days 21 hours ago
4 days 14 hours ago
5 days 6 hours ago
5 days 13 hours ago
1 week 17 hours ago
1 week 2 days ago
1 week 4 days ago
1 week 4 days ago