Answer the question
In order to leave comments, you need to log in
Drupal 7! How to put two fields in a link?
I display the field (image) as a link to the material, and I would like to display the (title) of the material inside this link.
Now it looks like this:
<div class="views-row views-row-1 views-row-odd views-row-first">
<div class="views-field views-field-title">
<span class="field-content">Судостроение</span> </div>
<div class="views-field views-field-field-iconki-tehnika">
<div class="field-content">
<a href="/content/sudostroenie"><img typeof="foaf:Image" src="http://kampo/sites/default/files/default_images/pr-img-1.jpg" alt=""></a>
</div>
</div>
</div>
<div class="views-row views-row-1 views-row-odd views-row-first">
<div class="field-content">
<a href="/content/sudostroenie"><img typeof="foaf:Image" src="http://kampo/sites/default/files/default_images/pr-img-1.jpg" alt="">
<span>Заголовок</span></a>
</div>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question