Closed (fixed)
Project:
Views Slideshow: Dynamic Display Block
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Jun 2010 at 21:46 UTC
Updated:
13 Jul 2010 at 01:30 UTC
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
Comment #1
ppblaauw commentedThanks 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