Needs review
Project:
Entity reference
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Apr 2013 at 20:19 UTC
Updated:
17 Sep 2019 at 13:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
nlisgo commentedHere is the patch. Please review.
Comment #2
nlisgo commentedLooking at the code more closely I recognise that the limit feature (introduced by display suite) is not working the patch in #1. This is an error I brought across from the ds taxonomy term separator formatter code. This latest patch addresses that.
Comment #3
StevenWill commentedThis is a much needed patch. For the most part the patch works, but the display is still wrapping each entity reference in Divs and causing them to not be on the same line. The display suite taxonomy term wraps all terms in one div.
Comment #4
brunodboAttached patch addresses the issue of each entity reference being wrapped in a div, by adding all field items in the first result item. This also gets rid of some unwanted spaces between items.
I also added an option to separate the last item with an ampersand, especially useful when separating items with a comma.
Comment #5
brunodboUpdating title.
Comment #6
brunodboJust found https://www.drupal.org/project/textformatter, which supports Entity reference.
Comment #7
chris matthews commentedThe 4 year old patch in #4 to entityreference.module does not apply to the latest 7.x-1.x-dev and if still relevant needs a reroll.
Comment #8
rpayanmComment #9
rpayanm