Closed (fixed)
Project:
Entity reference
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 May 2012 at 19:04 UTC
Updated:
13 Mar 2017 at 23:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
bojanz commentedLet's get the discussion started.
This patch works for me.
Comment #2
amitaibuI'll go over it, first thing that "jumped" out was commerce-product related stuff -- I don't think ER should deal, it should be added by an alter hook via commerce-product.
Comment #3
amitaibuThis probably needs to trigger a hook and a drupal_alter(), instead of hardcoding the list.
We can probably get this info from entity_get_info()
I think we can get the field types from the new entityreference_field_type_settings()
Comment #4
pam.pkrweb@gmail.com commentedHi
Do you see this patch getting into the module? Or maybe better question is How can it work with commerce product reference fields? Thank you.
Comment #5
itamar commentedRe-rolling bojan's patch according to Amitai's comments - Removing commerce related definitions from entityreference.
Comment #6
itamar commentedI added the commerce-product-reference specific definitions here: http://drupal.org/node/1788880
Comment #7
damien tournoud commentedThe target column is *not* a field setting for entity reference. We should not stuff it in there...
Let's find another place for it.
Comment #8
bojanz commentedI don't like where #5 went either.
Commerce now has a "rendered product" formatter, so let's just remove any mention of that field type, support only core fields (term reference, basically), and remove the need to have any additional hooks.
Comment #9
amitaibuNow that commerce doesn't need it, I think we should actually take another approach -- make taxonomy term obsolete (as we'd want to do for 8.x):
Comment #10
bojanz commentedIt's too late for me to change the taxonomy_term_reference fields in Kickstart, so I will still need a patch such as this one. I'm probably not the only one.
Comment #11
vasike#8 patch rerolled
Comment #12
nwy commented#11: 1580348-universal-formatters-11.patch queued for re-testing.
Comment #13
hswong3i commented#11 patch rerolled
Comment #14
hswong3i commentedooo miss...
Comment #15
roborn commented#14: 1580348-universal-formatters-14.patch queued for re-testing.
Comment #17
roborn commented#14 doesn't apply cleanly
Comment #18
guy_schneerson commentedThanks guys #14 was applied cleanly for me and works great.
Comment #19
apanag commented17: 1580348-universal-formatters-17.patch queued for re-testing.
Comment #20
discipolo commentedme too
Comment #21
rmathew commented#17 applies cleanly for me, using 7.x-1.1
Comment #22
asb commentedComing from https://www.drupal.org/project/commerce_fancy_attributes, where I've been instructed to apply "the" patch from #1580348: Make the formatters work with other reference fields.
For me, the patch from #17 doesn't work at all:
In #10, bojanz mentioned about two years ago that he'd need this pach for Commerce Kickstart, so I don't know if something is included in Kickstart 2. However, I want this bloody "Rendered entity" formatter mentioned at https://www.drupal.org/project/commerce_fancy_attributes, and it does not exist in Kickstart 2.
I might also add that appying and reverting this patch kills my Kickstart 2 installation:
So be careful when following the instructions from https://www.drupal.org/project/commerce_fancy_attributes.
Comment #23
bojanz commentedThis patch is already included in Kickstart v2, always has been.
You applied the patch twice, hence the error you saw.
Comment #24
asb commentedGood to know, but I still don't see the "Rendered entity" formatter mentioned at https://www.drupal.org/project/commerce_fancy_attributes :-(
Comment #25
edysmpApplied on a commerce 2.x site with fancy attributes and the render entity formatter just works.
Comment #26
hswong3i commentedWith latest commit this patch no longer working ;-(
Comment #27
florisg commentedRe rolled #17 against latest git checkout of 7.x-1.x
Comment #28
hswong3i commentedRe rolled #1580348-17: Make the formatters work with other reference fields against latest git checkout of 7.x-1.x
Comment #29
hswong3i commentedRe rolled #1580348-28: Make the formatters work with other reference fields against latest git checkout of 7.x-1.x
Comment #31
spotzero commentedCommitted.
Comment #33
xumepadismal commentedRe-roll in #29 breaks #1674792: Rendered entity is not language aware committed earlier.
It should be
$target_langcodeinstead of$langcode:Should we revert and commit proper re-roll or just create a separate issue?
UPD: Sorry, missed that one: #2850416: Rendered entity is not language aware (again)
Comment #34
minoroffense commentedResolved in the other issue.