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.
Problem/Motivation
The link field is not visible in the summary.
If you have a paragraph type "link" that only has a link, it has an empty summary.
That makes understanding the context hard.
Proposed resolution
Support link fields like any other.
Let's display the URL, not the label.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#7 | interdiff-2882586-4-7.txt | 763 bytes | johnchque |
#7 | consider-link-field-values-2882586-7.patch | 2.67 KB | johnchque |
| |||
#4 | consider-link-field-values-2882586-4.patch | 2.74 KB | johnchque |
|
Comments
Comment #2
miro_dietikerAffects Paragraphs Collection where we have a Link field.
Maybe output the link URL if there is no label - like the label behaves when rendering.
Comment #3
johnchqueWorking on this. :)
Comment #4
johnchqueThis should work. :)
Comment #5
Berdirthat's certainly an impressively complex way to get at the properties. You just need $this->get($field_name)->/title/uri, gives you the same.
Comment #6
toncic CreditAttribution: toncic commentedOptional, this sound a bit strange maybe just reorder words to be 'If title is not set ...'
Comment #7
johnchqueRight, changed and updated.
Comment #9
miro_dietikerAwesome, committed.