Using the link field from the contrib module, you can add a static "anchor text" and "link title", so that the user that fills in the field must enter only the URL. In my websites, I use very very much this feature. Unfortunately, it went lost moving link to core.
And, of course, it would be nice if these static texts could have support for tokens...
Example use-cases:
- A website that needs to store the link of an IOS or Mac OSX application in the App Store would need this feature to assign the "See [appname] in the App Store" (where [appname] is a token) to the anchor text of a link field without having the risk of publishers changing the exposed default value;
- You might want to set the anchor text of a link to the value of another field of your content type, but for some reason you need the value either as a field value and the anchor text;
In these two use-cases, you would need a static "link title" too if you want to enhance these links' accessibility.
Comments
Comment #1
sunCan you clarify the use-case(s) for a static link title? (ideally in the issue summary)
Comment #2
falcon03 commented@sun: done! :-) I hope this is clearer now!
Comment #3
swentel commentedComment #3.0
swentel commentedAdding use cases
Comment #4
mac_weber commentedPostponing feature requests as of the allowed beta changes https://www.drupal.org/contribute/core/beta-changes
Comment #5
mgiffordDrupal 8-beta 1 has been released.
Comment #6
mac_weber commentedActually we are on Beta 15 now. Please read the policy at https://www.drupal.org/contribute/core/beta-changes
Comment #7
mgiffordJust cleaning up the 8.0 postponed items. Thanks for bumping it to 8.1.
Comment #8
mac_weber commentedPostponed items are like this because they should wait for the end of Beta. It is not about the version change.
New features cannot be added at this time.
Comment #9
mac_weber commentedComment #12
nicholas.alipaz commentedThis seems like a much needed feature. Keep running into this on projects and having to write pseudo field every time.
Comment #16
droprocker commentedAny News upon this issue? I just ran into the same problem. I just wonder that this issue is 5 years old and still no solution? Or am I missing something?
Comment #17
dubs commented+1 from me. This would be a very useful feature to add.
Comment #19
limehouse commented+1 here 2! Thanks.
Comment #20
xenophyle commentedI have been using https://www.drupal.org/project/fixed_text_link_formatter. Works real good.
Comment #21
limehouse commentedPerfect! Thanks very much for taking the time.
Comment #22
dubs commentedThanks for that comment - I'll check that formatter out :-)
Comment #31
alphex commentedBump this.
Comment #33
dcam commentedThank you for your suggestion to improve Drupal Core! I'm going to close this issue on the basis that there wasn't a lot of support for the idea over the last 12 years and that there's a contrib module that does what is asked. If anyone needs this functionality, then I suggest you download and install the fixed_text_link_formatter contrib module. I'm not certain that it supports tokens, but it could probably be updated to do that.