How can I generate a link from a text field and a URL in a View? I have an entity type consisting of 2 fields, a description field and a URL field, and I want to create a view with a single column which consisting of the description outputted as a link to the URL, ie &lt;a href="url"&gt;Description&lt;/a&gt;.

I don't know whether I am doing it the right way. I tried to use the tokens and rewrite results to create URL in the form &lt;a href="url"&gt;Description&lt;/a&gt; but it winds up pointing to the Drupal node. Is there some way of creating some kind of calculated field pointing to the URLs?
In Views you have a couple of ways to do this:

Method 1:


Add the url field to the view, but "exclude" it from the display
Add the description field to the view, but re-write its out put to a link and add the URL token replacement as the URL or path.


Method 2:


Add the url field to the view, but "exclude" it from the display
Add the description field to the view, but "exclude" it from the display
Add a global field for custom text and inside of it add field-description where field-url and field-description are the replacement token from the fields added to the view.


Note: In views it is important the order of the fields, so if using method 1 the url field has to be placed before the description field.