Does anybody know how to get the nid
from a node using contextual filters or filter criteria in views
WITHOUT using "Get id from url"? I was thinking about using PHP or getting it from a node-field.
My view is a block of comments that is to be placed together with a node. The comments needs to belong to the node and linked by node ID. In this case the "Get ID from url" wont work since the node itself is listed in another view.
It is a view-block (containing comments) inside of a node that is listed in a view.
views_get_view
in a template file to load and display your view?<?php $block = block_load('views', 'comments-block'); $output = drupal_render(_block_get_renderable_array(_block_render_blocks(array($block)))); print $output; ?>
Would another print-method work better? @krister andersson