I have a view with td grid style and two fields: views-field-field-foo-image and views-field-field-foo-title.
The image is linked with colorbox load and the structure of the HTML is like this:
<div class="views-field views-field-field-foo-image">
<div class="field-content">
<a class="colorbox views-ajax-processed-processed"....
<img width="230" height="150" title="" alt="" src="...>
</a>
</div>
</div>
<div class="views-field views-field-field-foo-title">
</div>
How can I put the foo-title into the foo-image field, so the structure to become like this?
<div class="views-field views-field-field-foo-image">
<div class="field-content">
<a class="colorbox views-ajax-processed-processed"....
<img width="230" height="150" title="" alt="" src="...>
<div class="views-field views-field-field-foo-title">
</div>
</a>
</div>
</div>
With views module by changing the order of fields, so the title become on top and with Rewrite results/Rewrite the output on the image field will be possible to change the structure, but I cannot understand the building process with tokens.
EDIT: Unfortunately the answers didn't helped me.
Here's an example http://www.mtv.co.uk/the-valleys when you hover on any latest video, you'll see the title. This is their structure:
<a href="/the-valleys/videos/the-valleys-season-3-angle-grinding-0">
<div class="carousel-item-image">
<h2>
<span class="videos-list-tag">Exclusive</span>
</h2>
</a>
I want to add that <h2>
inside the link, or in my case the title field.
That's what I want to achieve.
I can see they don't use views. If someone knows how to create that even without Views module, please let me know.