Khanh Hoang - Kenn
Kenn is a user experience designer and front end developer who enjoys creating beautiful and usable web and mobile experiences.
>> Hướng dẫn code entity reference trong custom entities (no bundles)
This blog post is the answer to a common request we get from people learning how to use Views.
The question is: "How do I automatically add a link to a field"?
The answer is straightforward, once you know how.
Imagine that you have a content type that looks like the image below. You have an active link using the Link module and also some other fields.
Now imagine that we're using Views to show some of items in that content type. Here's a photo gallery using Views. If you don't know how to do this, use our tutorial "Creating a Photo Gallery in Drupal 7".
Now let's show you to automatically add links.
In this example, we're going to automatically link the Movie Poster field to the "Official Website" field.
Inside our view, the image below shows how the fields look currently. We have a Title and Movie Poster field.
We're going to add the Movie Poster field.
You've finished and your movie posters will be automatically linked to the official website.