For a contrib, i have created an entity and a bundle with their types. Data is stored in own tables, so basically i only want to manage the display of fields. This all works nicely, doing the entity stuff in preprocessor, view and build_content functions.
I have three fields, only set for display in hook_field_extra_fields. None of them are showing in the Fields display UI. However, as soon as i create a custom field (which is stupid in my case, since data is created by code and not by user input), i see four fields which i can drag around in the full view mode. The frontend appears like configured.
When tracking this, it always comes down to calculating the instances and the extra fields where in some cases only the empty($instances) is checked while there could be just extra fields.
Does this make sense?
Comment | File | Size | Author |
---|---|---|---|
#2 | field_ui.admin_.inc_.patch | 791 bytes | Stalski |
Comments
Comment #1
Stalski CreditAttribution: Stalski commentedWeirdly enough the only thing that is needed is the change on line 828 in fields_ui.admin.inc:
As the fields manage display system is currently unusable with extra fields only, i will make this a critical. I am testing this further to see if it has any implications on the rest, but that's very unlikely.
- EDIT -
Comment #2
Stalski CreditAttribution: Stalski commentedThe patch for it.
Comment #3
yched CreditAttribution: yched commentedMakes sense. Does not qualify as critical, though, D7 is not "unusable" without the fix.
Comment #4
swentel CreditAttribution: swentel commentedBumping! This is really necesssary :(
Comment #5
swentel CreditAttribution: swentel commentedMoving to dev and getting this some attention.
Comment #6
Stalski CreditAttribution: Stalski commentedBumping this. Weird, i don't work on too many contribs but the ones i work on all need this patch: heartbeat, display suite and field_group :)
Comment #7
yched CreditAttribution: yched commentedyes, bumping as 'major' - The Field UI screens host features not specific to Fields.
Comment #8
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.