I would like to be able to easily display the entire node from views-slideshow-ddblock-cycle-block-content-xyz.tpl.php

Currently I'm doing it this way:

1. In template.php of the theme I'm using, in function mytheme_preprocess_views_slideshow_ddblock, after this line:
$slider_items[$key1]['slide_node'] = base_path() . 'node/' . $result->nid;

I added this:
$slider_items[$key1]['slide_nid'] = $result->nid;

2. In views-slideshow-ddblock-cycle-block-content-xyz.tpl.php I'm printing the node by adding these lines:

    $node= node_load($slider_item['slide_nid']);
    print node_view($node);

Is there a simpler way for achieving this?
If not, I think it's a worthy addition to the code.

Thanks.

Comments

ppblaauw’s picture

Title: Print the node in the slideshow » Print the node in the slideshow (fixed)
Status: Active » Fixed

Thanks for posting.

This would be the way with the ddblock module and the views_slideshow_ddblock module version 1.x how to print the whole node.

Added the code as a preprocess snippets which can be used with the ddblock module and views_slideshow_ddblock module at http://ddblock.myalbums.biz/preprocess_snippets

Status: Fixed » Closed (fixed)

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