Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#10 | Edit Content Type.jpeg | 125.88 KB | holtzman |
Comments
Comment #1
shadysamir CreditAttribution: shadysamir commentedComment #2
aspilicious CreditAttribution: aspilicious commentedAre you on ds 2.8 or ds dev?
Comment #3
shadysamir CreditAttribution: shadysamir commented2.8
Comment #4
dw72 CreditAttribution: dw72 commentedI also have this problem with latest dev
Comment #5
aspilicious CreditAttribution: aspilicious commentedComment #6
aspilicious CreditAttribution: aspilicious commentedWe 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.
Comment #7
holtzman CreditAttribution: holtzman commentedI 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.
Comment #8
georges_1707 CreditAttribution: georges_1707 commented#7 You rock! This really works, and you are right, this happens with recent upgrades of Drupal
Comment #9
thomasmurphy CreditAttribution: thomasmurphy commentedI 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
Comment #10
holtzman CreditAttribution: holtzman commentedIf I remember correctly: In /admin/structure/types/manage/[content type] in the Display Suite:Extras tab at the end of the page, uncheck "Default".
Comment #11
thomasmurphy CreditAttribution: thomasmurphy commentedThanks, holtzman, tucked in at the end there! Sadly it didn't help, I have the revisioning bug, I think.