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.
I wonder how this have been missing before, but ECK entity properties are not available on "Manage Fields" form (field_ui_field_overview_form
)
Comments
Comment #1
OnkelTem CreditAttribution: OnkelTem commentedThe patch simply implements
hook_field_extra_fields()
.Comment #2
webadpro CreditAttribution: webadpro commentedI think this should get commited.
Comment #3
ff1 CreditAttribution: ff1 commentedThis patch works perfectly.
Comment #4
webadpro CreditAttribution: webadpro commentedPatch Doesn't work properly.
Comment #5
webadpro CreditAttribution: webadpro commentedPatch @ #1 was always replacing the last field.
Here's a fixed version.
Comment #6
webadpro CreditAttribution: webadpro commentedBetter fix.
Comment #7
OnkelTem CreditAttribution: OnkelTem commented@webadpro
Would you explain, what the added part exactly does?
Comment #8
webadpro CreditAttribution: webadpro commentedAdds the fields in the manage display section. :)
Comment #9
OnkelTem CreditAttribution: OnkelTem commentedOh yeah...
I use Display Suite which adds them automatically. That's why I never lost them :)
Comment #10
webadpro CreditAttribution: webadpro commentedActually I dont think DS adds them. Are you using your other patch?
Ref: http://drupal.org/node/1787460
Comment #11
acrazyanimal CreditAttribution: acrazyanimal commentedI have actually been meaning to add this for a while. Thanks for getting the ball rolling. The patch in #6 does not apply properly for me against 7.x-2.x-dev. I manually threw it in though and it seems to work great to me. I would mark this as RTBC and commit it, but I don't like the idea of making all properties automatically show up in the manage/display fields tabs. It is likely that you will not want to expose all of your properties all the time. I propose making them configurable per bundle which properties to expose.
I have re-rolled @OnkelTem's patch from #6 above and created an additional patch that adds the ability to configure which fields get displayed. Apply the second patch after applying the first. To configure which properties to display you must click the edit tab on the bundle admin pages.
I am prepared to commit the first and second patches once a few people have tested them out and can verify they work well.
Comment #12
acrazyanimal CreditAttribution: acrazyanimal commentedNote to self: re-roll patch to also give cred to @webadpro
Comment #13
dagmarI have tested both patches. They are working fine.
Comment #14
OnkelTem CreditAttribution: OnkelTem commentedComment #15
fmizzell CreditAttribution: fmizzell commentedComment #17
tchopshop CreditAttribution: tchopshop commentedSomehow it's not working. I have applied the patch and the UI works... I hid the title field in my Teaser display. Then I added the Teaser to a panel and the title still shows up. I've also clicked to rewrite title (blank) and hide label inside the panel modal.
Of course I can use display:none in my CSS but I'd rather not.
Comment #18
tchopshop CreditAttribution: tchopshop commentedI should add that I'm displaying the entity via Entity Reference, so perhaps the title is getting stuck in that way?
Comment #21
darren.fisher CreditAttribution: darren.fisher commentedI've rerolled both patches given in #11 against eck version 7.x-2.0-rc7.
The patches in #11 failed for some reason.
Hope this helps someone.
Also re-opening issue for needs review as this would be a simple and necessary addition to eck across many use cases. It appears that this this functionality isn't part of the current release, however haven't checked the dev branch, so if this feature is in there in some form- please re-close.
Comment #22
Anonymous (not verified) CreditAttribution: Anonymous commentedIndeed indifisher. Thank you for your patch. I applied your patch #21 and it worked as expected. I searched for some days now to find this topic. It should really be a part of eck.
Comment #23
joelstein CreditAttribution: joelstein commentedThe patch in #21 applies cleanly and does the job. Can we get it committed?
Comment #24
joelstein CreditAttribution: joelstein commentedBy the way, for Features support, this patch should be committed: #1867614-3: Export bundle 'config' field to features
Comment #26
fmizzell CreditAttribution: fmizzell commentedComment #27
joelstein CreditAttribution: joelstein commentedThanks!
Comment #29
pianomansam CreditAttribution: pianomansam commentedI was very confused because I have 7.x-2.0-rc7 and this issue is not resolved on it. So I'm marking this as being fixed on 7.x-2.x-dev as having it marked as rc7 is misleading.
Comment #30
babruix CreditAttribution: babruix commentedRe-rolling patch for 7.x-2.0-rc8.
As eck_entity_info_alter already in eck.module, only needed is to patch eck.bundle.inc file.