/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
FORMAT Format:HTML list | Settings FIELDS (content referenced) Content: Title RELATIONSHIPS Entity Reference: Spotlight Content CONTEXTUAL FILTERS Content: Nid NOTE (More on Contextual Filters!!) do provide default value: "Content ID from URL" Seemed like this works also if you select "PHP…": $node = menu_get_object(); if($node->nid){ return $node->nid;} else{ return null; }