I want to display all authors of node comments, so I build a custom view, attach it to node with EVA, pass Contextual filter with PHP code:

$node = menu_get_object();
if ($node && $node->nid) {
  return $node->nid;
}

works perfectly when it is on node content page, but not when on custom block region created with DS. Even code

return $node->nid;

also works as expected.

What is the best way to pass node variable to EVA field in DS created block?

Comments

playfulwolf’s picture

Title: How to get node ID to use on EVA fields? » How to get node ID to use on EVA fields (in DS created block)?

changing the subject to more correct one

playfulwolf’s picture

seems if I put any static value as node ID into Contextual filters - it does not pass to EVA view in DS created block, but works on views block.
strange

aspilicious’s picture

Status: Active » Closed (works as designed)

DS simply doesn't support this with a DS created block.