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.
When I enable feature which imports content types everything goes fine. But I'll need to enable custom display settings by hand. Not that big of a deal, when theres only few content types but when I have 10 content types and about 20 sites. It gets kinda annoying.
Comments
Comment #1
mike_yang CreditAttribution: mike_yang commentedI just ran into the same issue.
If you enable the Strongarm module, and when you create the feature make sure to select the field_bundle_settings under the Strongarm component list, the custom display settings would be properly exported.
Comment #2
mike_yang CreditAttribution: mike_yang commentedJust a followup to my comment...
When I installed the feature with the Strongarm controlled field_bundle_settings, I can't access the editing page for the custom display anymore. This was done using a freshly installed site by the way.
Anyone else saw this problem?
So for now I'll have to use GloGi's solution of manually toggling the display settings on my site. Sorry for the false hope!
Comment #3
tcmug CreditAttribution: tcmug commentedI'd say this is a major bug.
Comment #4
mpotter CreditAttribution: mpotter commentedConfirming that this is still an issue. Custom display settings do not get exported. For example, enable the RSS feed for the content type display. When importing, the individual field information is correct, but the content type does not have the RSS display type enabled. After manually enabling the RSS type, then the proper fields are shown in the display.
Exporting the strongarm "field_bundle_settings" didn't help, but also didn't cause any problems with editing.
Comment #5
febbraro CreditAttribution: febbraro commentedI'm going to close this marking as a dupe of #1277854: Faciliate altering features, e.g., export field display settings separate from field data structure
Comment #6
jec006 CreditAttribution: jec006 commentedThis does not appear to be a duplicate of that issue.
The issue here is that features does not export custom display settings (i.e. setting search_result to be custom). This isn't a problem with how it is exported, simply that its not exported at all.
This remains a major issue from my testing.
Comment #7
jec006 CreditAttribution: jec006 commentedAlright - actually, despite the comments above - export field_bundle_settings does indeed export these settings and seems to work fine.
Back to fixed
Comment #9
michaellenahan CreditAttribution: michaellenahan at erdfisch commentedEven though this issue is closed, I'm adding a note for those who come across this page via a google search:
The variable 'field_bundle_settings' is not the one you should export (since 7.14 this changed: https://www.drupal.org/node/1306924)
You should find the field_bundle_settings for the node bundle (content type) to which you have added your view_mode.
For example, if you have added a view_mode to a 'news' bundle (content type) then you need to export this variable:
field_bundle_settings_node__news
Comment #10
RAWDESK CreditAttribution: RAWDESK for Colruyt Group Services commentedThanks @michaellenahan
Useful tip. I couldn't find the little culprit inside the recreate UI