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.
- Add a link field to a content type
- Provide custom help text
- Disable the link text field
- Save
The custom description is not used. See screenshots (it is still showing "This must be an external URL such as http://example.com.").
It seems that the custom help text is only applied to the link text component. If you set the field to only display the web address part, then the help text does not appear anywhere.
Suggested solution
Help text should apply to the whole fieldset. There should be dedicated overridable help text for each of the web address and link text parts.
Comment | File | Size | Author |
---|---|---|---|
#6 | 2836062-6-link-help-text.patch | 3.32 KB | hey_germano |
Screen Shot 2016-12-15 at 11.57.25.png | 17.95 KB | Leo Pitt | |
Screen Shot 2016-12-15 at 11.57.00.png | 48.97 KB | Leo Pitt |
Comments
Comment #2
Leo Pitt CreditAttribution: Leo Pitt commentedComment #3
darrenwh CreditAttribution: darrenwh as a volunteer and at Investis Digital commentedI think this should be a feature request
Comment #4
Leo Pitt CreditAttribution: Leo Pitt commentedI'm not sure - it certainly feels like a bug. The help text doesn't appear where it does on every other field type, and there is no explanation as to why. I'm pretty sure this is not working as intended.
Comment #6
hey_germanoFelt like a bug to me, too, and I could reproduce it in 8.4.x-dev.
Here's a patch that prepends the admin-entered help text for the Link field before any description text that the Link module sets. This is only needed in cases where the Link Title field is hidden.
Comment #7
cilefen CreditAttribution: cilefen at Institute for Advanced Study commentedIs this a duplicate?
Comment #9
Leo Pitt CreditAttribution: Leo Pitt commentedI think this is indeed a duplicate. Good spot.
Comment #10
Leo Pitt CreditAttribution: Leo Pitt commented