Closed (duplicate)
Project:
Views (for Drupal 7)
Version:
6.x-2.0-rc1
Component:
node data
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
27 Aug 2008 at 06:21 UTC
Updated:
27 Aug 2008 at 07:03 UTC
hello guys,
I am using views and cck, my problem was, when i create a view and as per instructed from the views-view-row.tpl.php that we just need to copy the node.tpl.php and change into node-view-VIEWNAME.tpl.php which i did. Now when I execute it using live preview it works well but when I display it in a block and displays at the frontpage or into any other section, what it uses was the node.tpl.php not the node-view-VIEWNAME.tpl.php
was there any solution about this?
Comments
Comment #1
merlinofchaos commentedThis has been fixed in -dev. If you need a workaround, there is a function named views_template_preprocess_node() in modules/node.views.inc -- move the entirely of that function into views.module
Comment #2
dzieyzone commentedThanks :)
Comment #3
dzieyzone commentedin addition did u mean views_preprocess_node() ?? I cant find views_template_preprocess_node() from modules/node.views.inc
Comment #4
merlinofchaos commentedSorry, yes. Braino there.
Comment #5
dzieyzone commentedDone. Thank you very much. It works!