Closed (fixed)
Project:
Contextual View Modes
Version:
7.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
24 Nov 2012 at 08:53 UTC
Updated:
17 Nov 2015 at 06:34 UTC
Jump to comment: Most recent
Comments
Comment #1
sherakama commentedI 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.
Comment #2
sherakama commentedDo you have any specific entity types in mind or are you talking about expanding this into an API for custom entities?
Comment #3
kaizerking commentedcan we apply for instance field collections ?
Comment #4
kaizerking commentedComment #5
dman commentedThe 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.
Comment #6
kaizerking commentedrephrased the title to better represent the issue
Comment #7
sherakama commentedJust dropped a new 2.x-dev version that is expanding support for entity types outside of nodes. Needs some work but its started.
Comment #8
sherakama commentedThe 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?
Comment #9
sherakama commentedComment #10
amaisano commentedNeed this for users!
Comment #11
sherakama commented@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.
Comment #12
sherakama commented