-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SHS-5674: Help text for link fields is confusing #1702
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@codechefmarc Looks great, just a minor code improvement suggestion.
docroot/modules/humsci/hs_field_helpers/hs_field_helpers.module
Outdated
Show resolved
Hide resolved
Ready to re-test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@codechefmarc LGTM, thanks for the fixes.
@ahughes3 Ready for you to review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved!
Would this be possible via this contrib module |
@pookmish - This module would work for content entities, but not for menu items or shortcuts as the AC originally intended. Additionally, if we went this route, it would create a lot more config and each link field would have to be edited separately to make the change. If those link fields change what kinds of links they accept (internal, external, or both) then the help text would have to be updated. With the current approach, this is handled dynamically for any link field. Let me know how you would like us to proceed. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, it's one of those tomato potato situations. I just wanted to bring up the option. I'm ok with this solution.
READY FOR REVIEW
Summary
Need Review By (Date)
2025-01-08
Urgency
low
Steps to Test
Testing internal and external links
Testing external links only
Testing menu items and shortcuts
/admin/structure/menu/manage/main
/admin/config/user-interface/shortcut/manage/default/customize
Note: I did not find a field that used internal links only that wasn't the shortcut. So, to test, we can create a dummy field in a content type and set it to use internal links only. I did test this locally and it works fine:
PR Checklist