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.
Hi,
I have a node (A), which references another node (B).
In the teaser view mode of the node (A), I need to change the label (link) to the referenced entity/node (B) (to replace the title of this entity by a generic expression of the type "see the referenced node").
Do you have a solution?
Thanks in advance
Comment | File | Size | Author |
---|---|---|---|
#5 | 2611288-5.patch | 1.78 KB | rpayanm |
#3 | entityreference-override-label-2611288-3.patch | 1.83 KB | mercepedraza |
|
Comments
Comment #2
Paulset CreditAttribution: Paulset commentedComment #3
mercepedraza CreditAttribution: mercepedraza at Ymbra commentedIn this patch I try to solve this problem by adding an option to override the label. The approach is very similar to the used in the related issue. I also made a little code simplification in the link setting code.
Comment #4
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 3 year old patch in #3 to entityreference.module does not apply to the latest 7.x-1.x-dev and if still relevant needs a reroll.
Comment #5
rpayanmComment #6
rpayanm