I was reading this article by one of the BEANS contributors, View Modes: Add 'Extra Fields' to Your Content, and trying to adapt this practice to BEANS and entities.

My goal is to have my BEAN titles be accessible to View Modes, so I can order them, show them, hide them, etc., like all the other entity fields.

That article shows how to do it for Nodes, but it doesn't work for entities. I hoped someone here has already done this and can help. I understand that it's hook_entity_view instead of hook_node_view, but that's as far as I can take it.

Comments

indytechcook’s picture

Status: Active » Closed (duplicate)

This is a duplicate of #1534722: Make custom bean compatible with Display Suite

Thanks for the link to the article also.

minneapolisdan’s picture

Indytechcook, thanks for the quick reply. I'm still in the dark, but trying. I followed that link you posted, and then followed that to another article from the Renderable Elements module. So I would need that module, plus Display Suite, to get this done?

Appreciate any help anyone can give here.

minneapolisdan’s picture

Not sure how it's a duplicate? But for those looking, there is a solution (or start of a solution) on that other post mentioned above.

minneapolisdan’s picture

Issue summary: View changes

correcting article title