I think it would be a good idea to switch from exclude to include view modes in field configuration.

For example: We add Google AMP handling with amp module and amp theme to our websites. For this you have to create many many view modes for all your entity types. After this the new created view modes also are included in field configuration list. So every time when you generate a new view mode in your backend for any entity, you should have in mind to re-configure your entity_reference_display fields.

In my opinion this could only be solved, if field configuration switch to use only selected view modes.

Comments

IT-Cru created an issue. See original summary.

kyberman’s picture

Component: Code » User interface
Assigned: Unassigned » kyberman

That's a good point, I'm working on this feature as a part of new release.
I was thinking about 2 radio buttons where you can switch from "Exclude" to "Include" according to your needs.

thomas.frobieter’s picture

#2 is the perfect solution

anybody’s picture

@kyberman: If you need any help let me know. Other modules already implement that exclude / include selection, like for example paragraphs I think. Its a really important and very helpful feature.

Our current workaround is to use a view for filtering.

  • kyberman committed e7561f2 on 8.x-1.x
    Issue #2862419 by IT-Cru, kyberman: Switch from exclude to include view...
kyberman’s picture

Version: 8.x-1.0 » 8.x-1.x-dev
Assigned: kyberman » Unassigned
Status: Active » Fixed

I finally added this switch into. Thank you all for suggesting this feature. New release will be created soon.

anybody’s picture

Whao this is great new, thank you!! =)

Status: Fixed » Closed (fixed)

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