Hi,
ds_extras (Display suite extras) does allow to create display suite regions that will be exposed as a block, to be placed in theme regions.

If an EVA is moved into such a ds region, it will not show up.
If I move the same EVA to a regular ds region, it shows up just fine.

Idea?

Comments

donquixote’s picture

fyi:
I already tried in page.tpl.php to render the main content, before I render the theme region with the EVA in it.
Does not help.

donquixote’s picture

Ok, found why this happens.
See #1570716: EVA not showing up with ds_extras "Region to block" (ds queue) in the ds issue queue.

The problem is that EVA is a preprocess field.

I remember last time I discarded EVA was exactly for this reason: Preprocess fields are processed, even if they are not needed.
It would be preferable if it was just a ds field, imo.

mkadin’s picture

Category: bug » feature

The EVA code explains why it needs to use hook_entity_view_alter vs. hook_entity view (some core and contrib entities don't implement hook_entity_view). But Its my understanding that block theming occurs before either of those two functions. To get this working would be a significant change in eva's methodology for displaying the view...so I see this as more of a feature request.

donquixote’s picture

Title: EVA not showing up with ds_extras "Region to block" » EVA not showing up with ds_extras "Region to block" (because it's a preprocess field)

Views content panes (included in ctools, afaik) can be used to achieve results similar or equal to EVA, and they are not preprocess fields.
(organic groups ships with views configured as content panes)
They are just more difficult/confusing to configure than EVA, esp. in Display Suite (where they are "extra fields").

The ideal thing would be an EVA that is not in preprocess.

mkadin’s picture

Status: Active » Closed (duplicate)

I'm closing this for now as a duplicate of #1617030: Make EVA not be a preprocess field as that issue is more general.

I will cross post on that queue as well. I'm skeptical that this will be possible without major revisions, but given the popularity of DS it would be nice if it can be done.