Comments

zambrey’s picture

I'm trying to use EVA module to display view attached to node in block region.
When I display it in main column it shows up okay but moving it into block region displays nothing.
I assume that this issue is related with my usecase.

swentel’s picture

Status: Active » Postponed

Ok, sadly enough I can't fix this at this moment :/ Postponing this to see in case there comes a 2 branch I can fix it (although I doubt it)

zambrey’s picture

Damn, that's the bad news. Is it architectural problem or lack of time on your part?

swentel’s picture

The problem is that the preprocess of the node comes later than the block theming, so I can't possibly know what I need to pass on, it's a real bummer :/

swentel’s picture

Status: Postponed » Closed (won't fix)

Ok, this will never work, sorry :/

seanb’s picture

Issue summary: View changes
Status: Closed (won't fix) » Needs review
StatusFileSize
new2.5 KB

Sorry to reopen this, but I think the issue could be fixed by using hook_entity_view() in stead of hook_field_attach_view_alter() to fetch the fields for the blocks. Is there a good reason not to do this?

Attached is a patch. Please review and let me know what you think.

*A fix for https://www.drupal.org/node/2221307 is included in the patch, since field groups are also not working. A cleaner patch for only the fieldgroups was added to the other issue.

kamenrs’s picture

Hello seanB,
for which version of DS is your patch?

seanb’s picture

I believe it was 7.x-2.6.

inversed’s picture

This applied cleanly for me to 7.x-2.6 but, unfortunately, did not have any effect for me. I'm still not able to see my preprocess field in the block region.

ArtuDrop’s picture

Version: 7.x-1.x-dev » 7.x-2.10
Status: Needs review » Needs work

I have same problem with DS 7.x.2.10 and EVA 7.x.1.2.

jmary’s picture

#6 patch worked for me.
EVA is not involved here though, but commerce fields from product variations, like picture and price.

amaisano’s picture

Workaround for me:

1) Create a new DS view mode, 1-column layout, with ONLY the EVA field visible

2) In the view mode you ultimately want to display the EVA field in, use an existing block region or create a new block region

3) Create a new dynamic field and choose Node > Node Content.

4) Select the view mode you created in step 1 and adjust other settings as needed.

5) Move it to the region you want and save.

6) Enjoy!

aspilicious’s picture

Status: Needs work » Closed (won't fix)

Thnx for all the input, this will be an actual won't fix in D7.
You probably should use one of the workarounds described here if you encounter issues.

jmary’s picture

@aspilicious : Because that patch hasn't been applied, my site has broken when I update from ds 2.11 to 2.13 and I spent 8hours trying to figure out why.

If the patch doesn't break things, and actually fix things, there is no reason no to include it.

C'est une blague Belge :-D ?