I developed this patch for a client. This client uses link fields within his content types (unlimited). But instead of having a simple list of links he wanted to be able to add text before or after each link. However, these text parts should not be clickable.
So, instead of

it should i.e. be something like this

The following patch provides the user with the ability to enter such texts. If you find this useful, please try it and let me know if you find any issues.

Cheers
Paul

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

broon’s picture

FileSize
68.26 KB

Thanks for the plus one, I already wondered whether or not anybody finds this useful. We have been using this patch (with numerous updates due to link module updates) for almost four years now on several websites without any issues. Best example/demo would be our institute's website: https://www.ecologic.eu (or see the attached screenshot).

In many cases, we only use the prefix field to describe the content type the links leads to, but there have been a lot of other instances these additional fields were helpful.

kari.kaariainen’s picture

Definitely useful. Which version is the patch for?

broon’s picture

The original patch was written for 7.x-1.0, there have been some changes in the meantime.
I just diffed our currently used version against a fresh 7.x-1.4 module installation, but this is only tested minimally, please use with care.

Status: Needs review » Needs work

The last submitted patch, 4: link_prefix-suffix-4.patch, failed testing.

broon’s picture

Status: Needs work » Closed (won't fix)
DamienMcKenna’s picture

Status: Closed (won't fix) » Needs review

Please don't close issues. Thank you.