I've used view mode per node for a long time now. It defaulted to "full content" view mode for full node page if the user did not specify a view mode for the node and the full content custom display settings is enabled. Now suddenly (after upgrading to Drupal 7.36 but not sure if that's the reason) the nodes show "default" layout for full content view mode if they are edited, unless of course I select "full content" from Display Mode tab which has "default" selected by default.

CommentFileSizeAuthor
#10 Edit Content Type.jpeg125.88 KBholtzman
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

shadysamir’s picture

Issue summary: View changes
aspilicious’s picture

Are you on ds 2.8 or ds dev?

shadysamir’s picture

2.8

dw72’s picture

I also have this problem with latest dev

aspilicious’s picture

Assigned: Unassigned » bceyssens
aspilicious’s picture

Status: Active » Closed (cannot reproduce)

We tried to reproduce this with two maintainers but we failed...
I must warn you that somewhere between 7.20 and 7.36 there was a change in hook_entity_view_mode_alter(). So I would look at custom code that plays with that.

Anyway not a ds issue.

holtzman’s picture

I just ran into exactly the same problem after turning on view mode per node for the first time. The problem did not appear until each page was edited and saved. I definitely have not written custom code to modify hook_entity_view_mode_alter() - I wouldn't know where to begin. Is there some other interaction that might cause this?
I think I've now solved the problem by unchecking "Default" under "Display Suite: Extras" in each content type, so that Default does not appear as an option on the node edit form. The nodes that I had not yet edited are now defaulting to "Full Content" so they still work after they are saved.

georges_1707’s picture

#7 You rock! This really works, and you are right, this happens with recent upgrades of Drupal

thomasmurphy’s picture

I also have this issue. holtzman, I don't know what setting change you're referring to to try and fix this, could you be more specific? e.g. an admin URL, screenshot, etc. This issue may also be related for anyone also running revisioning
https://www.drupal.org/node/1919452

holtzman’s picture

FileSize
125.88 KB

If I remember correctly: In /admin/structure/types/manage/[content type] in the Display Suite:Extras tab at the end of the page, uncheck "Default".

thomasmurphy’s picture

Thanks, holtzman, tucked in at the end there! Sadly it didn't help, I have the revisioning bug, I think.