Closed (fixed)
Project:
EVA: Entity Views Attachment
Version:
7.x-1.1
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Dec 2011 at 13:43 UTC
Updated:
27 Aug 2018 at 04:20 UTC
Jump to comment: Most recent
Comments
Comment #1
FR6 commented@Fr0s7 in version 7.x-1.1 and Drupal 7.10 it worked for me.
And if I want to change the layout of my node with a custom template file (node--mycontenttype.tpl.php), I have access to the view in the $content array variable and I can render it where I want with render($content["myview_entity_view_1"]).
Comment #2
calhemp commentedthanks for this clue. very useful to me.
Comment #3
Fr0s7 commentedEVA is working much better these days.
@FR6: Thank you very much for the code snippet. I am indeed able to print out a single entity view attachment using the following:
NOTE: It's important to replace any dashes in the view machine name with underscores. You do NOT need to prepend your view name with 'view_' like Drupal does in markup.
Comment #4
Fr0s7 commentedComment #5
deelite commentedIn my case it doesn't work. I use
<?php print render($content["image_gallery_entity_view_1"]); ?>where 'image_gallery' is the machine name of my view. I have 2 displays of type 'EVA field'. Neither entity_view_1 nor entity_view_2 are working.
I use version 7.x-1.x-dev of EVA.
Can anybody help?
Update: there was a problem with my view. With a new view it works as expected.
Comment #6
maxplus commentedFor me this works; I only have one EVA display in my view:
I'm using EVA 7.x-1.4