Views: Link Title using Text URL field (GUID)

by Travis   Last Updated October 11, 2018 15:07 PM

I've created a feed within aggretator that I am displaying using views. I have a title field and a separate GUID field, which contains the link to each specific item's audio podcast. However, when I opt to display the Title as a link, it simply links to the RSS feed's URL. I would like to make it link to the GUID field, which contains that title's audio URL.

How can I use one field in Views to serve as the link of another field?

Tags : 7 views feeds


Answers 3


Include both field. And in rewrite field use something like this

<a href="[guid-link]">[title]</a>

You can use replacement tokens to search for proper token. Also re-arrange the fields to list guid before title in order to show up in replacement token. also check exclude from display in guid field settings.

Shabir A.
Shabir A.
October 27, 2015 20:42 PM

Assuming that you know the link and can construct it from the GUID field (either by some/text/[guid_field_machine_name]/maybe/more/text or just [guid_field_machine_name] or what have you):

  1. Using the dropdown arrow to the right of the Fields section of your view, select "Rearrange"
  2. Move the GUID field above your title field and save
  3. Make sure your title field no longer has the link box checked off, because we're going to use a different link box.
  4. Click on the title field to pull up the settings where you unchecked the link box. This time, select the Rewrite options.
  5. Select the link option under the rewrite options. This will show you a text box where you can use fields that appear above the title field in your rearranged list of fields in a link to add to the title field. In this box you should put your GUID url, using [guid_field_machine_name] for the GUID field.

If you have questions, let me know, I can definitely provide more specific directions with a bit more information from you, like what exactly the GUID field contains and stuff.

Erin McLaughlin
Erin McLaughlin
October 27, 2015 20:43 PM

I'm having a similar issue. I followed your steps but however it's still not working for me. Can someone help me. I'm in Drupal 7. I have a url field that I'm trying to link to the title. It's working for the first 13 items but it stopped working for the rest out of no where. Can someone please help me?

Aisha91
Aisha91
October 11, 2018 14:34 PM

Related Questions


Updated April 13, 2015 03:03 AM

Updated April 17, 2015 22:03 PM

Updated June 19, 2015 01:03 AM

Updated August 11, 2015 20:03 PM