Hi,

I enabled the "Full content" for one of my content types at some point and configured a layout for it. Later I decided to go back to using the "default" view mode (also using a ds layout). Unfortunately, some display suite settings seem to still be loaded from the "Full content" view mode instead of the "Default" one (like e.g. field template settings).

I tried to dig into display suite code and found that ds_get_field_settings() still loads and returns settings for both the "default" and also the disabled "full" view mode. ds_preprocess_field(), which is calling that function, uses settings from the "full" view mode.

I am not entirely sure how this is supposed to work, but my guess is that a) the settings function should possibly not return settings for disabled view modes; and b) the "default" view mode needs to be used as a fallback for disabled view modes somehow somewhere...

Ben

CommentFileSizeAuthor
#3 1311108-3.patch2.97 KBswentel

Comments

bforchhammer’s picture

Hm, this actually seems to be an issue with drupal, not display suite...

swentel’s picture

Status: Active » Postponed (maintainer needs more info)

Well, the main funciton responsible for this should be ds_get_layout() which check whether DS is triggered or not and the $fallback parameter is set to TRUE during display. So you should be able to debug in that function to check if anything goes wrong in there.

swentel’s picture

Status: Postponed (maintainer needs more info) » Fixed
StatusFileSize
new2.97 KB

Found the small bug. Patch attached, committed and pushed!

donquixote’s picture

Thanks :)

Status: Fixed » Closed (fixed)

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