Drupal - Making 2 Links from a View Field
In a Drupal view, one of the presentation options for a selected field is to have the field be a link to its node. What if you need the label to also be a link? No problem!
Another option is to rewrite the output, so you can manually create the links using HTML, and specify the replacement pattern of [nid] for one. The only problem is that when a field is a link to its node, the URL that appears is the path alias, mydomain.com/my-content, but when using [nid] in a manually constructed link, the resulting URL is mydomain.com/node/##.
Of course, you cannot simply embed HTML in the label. With that in mind, here are the steps:
- Remove the field label
- Check the Exclude from display box
- Add a global text field:
<a href="mylink1">Link Text</a>[replacement_tag_of_original_field]