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.
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 CreditAttribution: falcon03 commented@sun: done! :-) I hope this is clearer now!
Comment #3
swentel CreditAttribution: swentel commentedComment #3.0
swentel CreditAttribution: swentel commentedAdding use cases
Comment #4
Mac_Weber CreditAttribution: 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 CreditAttribution: Mac_Weber as a volunteer 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 CreditAttribution: Mac_Weber as a volunteer 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 CreditAttribution: Mac_Weber as a volunteer commentedComment #12
nicholas.alipaz CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: Dubs as a volunteer and at Drupology commented+1 from me. This would be a very useful feature to add.
Comment #19
limehouse CreditAttribution: limehouse commented+1 here 2! Thanks.
Comment #20
xenophyle CreditAttribution: xenophyle commentedI have been using https://www.drupal.org/project/fixed_text_link_formatter. Works real good.
Comment #21
limehouse CreditAttribution: limehouse commentedPerfect! Thanks very much for taking the time.
Comment #22
Dubs CreditAttribution: Dubs as a volunteer and at Drupology commentedThanks for that comment - I'll check that formatter out :-)
Comment #31
alphex CreditAttribution: alphex commentedBump this.