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

merlinofchaos’s picture

Status: Active » Closed (duplicate)

This 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

dzieyzone’s picture

Thanks :)

dzieyzone’s picture

in addition did u mean views_preprocess_node() ?? I cant find views_template_preprocess_node() from modules/node.views.inc

merlinofchaos’s picture

Sorry, yes. Braino there.

dzieyzone’s picture

Done. Thank you very much. It works!