Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
field system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Feb 2010 at 13:22 UTC
Updated:
17 Mar 2010 at 10:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
litwol commentedtaking note to run diffs agains fresh cvs checkout and not local bzr checkout.
Comment #2
yched commentedThen the behavior just becomes 'nothing is displayed in new view modes until the admin explicitly configures the mode", which I don't see as better.
Right now, view modes for which nothing is configured just use the display settings for the 'full' mode, which is how this behaved in CCK D6, and is IMO what makes most sense in the current state of the UI.
This being said, the real solution would be #553298: Redesign the 'Manage Display' screen (see screenshot in #83).
Comment #3
litwol commentedWhen field instances are added, these values should be explicitly set. Attached patch is for DX improvement. I'll make a patch to fix UX if could point me to the right api which to make explicitly set the default display type to full.
Comment #4
litwol commentedSending patch for review..
Comment #5
litwol commentedI forgot i had to make them from webroot...
Comment #6
douggreen commentedThis patch doesn't work for me because _field_info_prepare_instance() sets the default to full. Do we need to do that?
Comment #7
catchAgreed this makes things very unwieldy if defining fields and instances in code.
Every time you add a new view mode, you need to go through every single instance attached to the bundle to explicitly set it to hidden. I've added some custom code to my instance install and update hooks which sets this by default, but then the field info array is only going to get bigger and bigger. So I like the direction here of not showing a field unless it's set to show manually, but also defaulting to on for instances saved via the UI.
Comment #8
chx commentedthe default should be an instance setting not something hardwired.
Comment #9
yched commentedThat's exactly what #553298: Redesign the 'Manage Display' screen does now (see #98 over there)
Comment #10
catchLet's mark this duplicate then. Default per instance seems like the best bet to me as well.