Adding default text within link.

Created on 22 January 2013, almost 12 years ago
Updated 1 September 2024, 3 months ago

I have set up a link called Tracking Number on an E-Commerce site (using Drupal Commerce). Since my client only uses UPS for their shipping, I set up a Link field type where all they would need to do is enter the UPS tracking number. I would like to set up this LINK field with pre-existing text or a base path such as "http://upstracking.com/tracking_number=" so that all the client has to do is enter "AAAAA22233344" in this field so that the final URL would be something like "http://upstracking.com/tracking_number=AAAAA22233344."

Is this possible? And if so, how would I go about doing this? Thanks.

πŸ’¬ Support request
Status

Closed: outdated

Version

1.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States Fubeman

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡«πŸ‡·France dqd London | N.Y.C | Paris | Hamburg | Berlin

    You can achieve this with tokens and computed field or custom field formatter. Not a special Link related task. You would need to do it with any field input you want to convert/merge into another output. Apart from that: Link module is in Drupal core now. I'll close this issue due to inactivity for 12 years and upcoming EOL of Drupal 7 in January 2025 β†’ . While the project version for Drupal 7 will keep providing support for security issues and website breaking bug fixes for Drupal 7, we should try to minimize the open issues for Drupal 7 in the queue as much as possible. Thanks for the report and all the efforts in here. Feel free to re-open if you can provide a fix or found an additional related problem which increases the issue priority to "Critical" here.

Production build 0.71.5 2024