Posted By

cphoover on 08/03/12


Tagged


Versions (?)

Rendering a list of referenced entities. Drupal entity


 / Published in: Other
 

  1. FORMAT
  2. Format:HTML list | Settings
  3.  
  4. FIELDS
  5. (content referenced) Content: Title
  6.  
  7. RELATIONSHIPS
  8. Entity Reference: Spotlight Content
  9.  
  10. CONTEXTUAL FILTERS
  11. Content: Nid
  12.  
  13. NOTE (More on Contextual Filters!!)
  14. do provide default value: "Content ID from URL"
  15.  
  16.  
  17.  
  18. Seemed like this works also if you select "PHP…":
  19. $node = menu_get_object();
  20. if($node->nid){
  21. return $node->nid;}
  22. else{
  23. return null;
  24. }
  25.  
  26.  
  27.  
  28.  
  29.  

Report this snippet  

You need to login to post a comment.