We need enable field_layout module for entity form display, also need display suite module for entity view. But display suite not working with field_layout module enabled.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Li Huang created an issue. See original summary.

Li Huang’s picture

FileSize
1.79 KB

This is not the final solution, but could solve my problem.

tim.plunkett’s picture

Project: Drupal core » Display Suite
Version: 8.4.x-dev » 8.x-3.x-dev
Component: layout.module » Code
tim.plunkett’s picture

Status: Active » Needs review
FileSize
620 bytes

Perhaps something like this?

aspilicious’s picture

Seems like a nice approach...

aspilicious’s picture

FileSize
1.83 KB

I added a test, it it's green I'll commit and roll a new release

aspilicious’s picture

Status: Needs review » Fixed

Thnx!

Status: Fixed » Closed (fixed)

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

gambry’s picture

Apparently the issue still exists, to replicate:

  1. Enable field_layout and ds
  2. 'One column' layout is automatically selected for any content type (I saved the Manage Form Display anyway, not sure if required to trigger the bug).
  3. Select a DS layout on Manage Display
  4. Make sure at least a DS field (i.e. Title) and a not-DS field (i.e. Body) are visible
  5. Save the changes
  6. Open your content and the not-DS fields are not showing. In my example with Title and Body, only Title shows up.

In order to restore your fields remove the layout from the display mode or uninstall field_layout.

gambry’s picture

IMHO the test doesn't fail due node_title being a DS attached field, and they show correctly. I'm assuming using "body" will fail, although I haven't tested yet.

dqd’s picture

But display suite not working with field_layout module enabled.

*Facepalm* ... sorry is it just me or do nobody clearly states here what the actually issue here was about? This is causing many confusion and some users have started to hijack other issues since it is not clear what the "not working" issues are all about. There are obviously several issues regarding the compatibility between DS and FL and some even can cause WSOD (posted in the middle of another issue which had a too generic title). We maybe should create a parent issue for this compatibility topic and should list all others there since otherwise the clutter will slow down the fixes.