can this work wit h entities?

Comments

sherakama’s picture

Version: » 7.x-1.0-alpha1
Assigned: Unassigned » sherakama
Status: Active » Postponed

I suppose this could work with any entity. Right now it is specific to node entities but the code is simple enough to be abstracted for use with custom entities. A user interface would have to be established in order to handle custom entities however. I would be willing to accept patches to handle this specific need.

sherakama’s picture

Do you have any specific entity types in mind or are you talking about expanding this into an API for custom entities?

kaizerking’s picture

can we apply for instance field collections ?

kaizerking’s picture

Title: can this work wit h entities? » can this work wit the entities?
dman’s picture

The code assumes 'node' in a lot of places, but it could be updated to use the entity APIs a bit more completely.
Current case, there's no reason why we shouldn't be able to use it on fieldable terms also. Field_collections is also a good example.

But it requires making a bit more use of the D7 abstraction layer. A bit tedious if you don't actually want to use it, but possible and more robust.
Certainly postponed is understandable.

kaizerking’s picture

Title: can this work wit the entities? » Contextual View Modes:Entity support

rephrased the title to better represent the issue

sherakama’s picture

Issue summary: View changes
Status: Postponed » Needs review

Just dropped a new 2.x-dev version that is expanding support for entity types outside of nodes. Needs some work but its started.

sherakama’s picture

Version: 7.x-1.0-alpha1 » 7.x-2.x-dev

The core view mode switching functionality will support any entity now but so far I have only written an interface for nodes. Which entity types would you like to see the view mode switching interface for?

  • Bean
  • Panel
  • Field Collection
  • other?
sherakama’s picture

Status: Needs review » Needs work
amaisano’s picture

Need this for users!

sherakama’s picture

Status: Needs work » Needs review

@amaisano,

I have pushed up a new module to this project that should give the users a contextual_view_modes option on the form to the latest 2.x development branch. Please give it a whirl.

sherakama’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.