At the moment the "Other endpoint" formatter for the dummy field only displays a list of links. For most uses of relation (2-ary relations) this is a bit stupid, as it only displays a list with one entry. It would make more sense, in these cases, to display just the single link. Attached is a patch that does just that.

After I wrote the patch, I relised that it's probably too simple, and that there should be a customisable display, akin to what views does for multiple fields - i.e. you can choose to display the links as a list (ordered/unordered), or choose a text-based separator (e.g. comma separation). I will start work on such a patch. Thoughts?

Comments

naught101’s picture

Status: Active » Needs review
StatusFileSize
new1.82 KB

This avoids changing the relation_default display.

naught101’s picture

Status: Needs review » Fixed

Committed to d7 and d8. Guess we might have to revisit this later, but not sure (see e.g. #1361380: Fulfill $items in hook_field_load)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.