Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I use this module and i need following markup for a HTML5 image gallery with a image field.
ul class="block-grid three-up" data-clearing>
<li><a href="http://placekitten.com/g/1000/800"><img data-caption="Maecenas sed diam eget risus varius blandit sit amet non magna." src="http://placekitten.com/g/100/100"></a></li>
<li><img data-caption="Maecenas sed diam eget risus varius blandit sit amet non magna." src="http://placekitten.com/g/1000/800"></li>
<li><a href="http://placekitten.com/g/1000/800"><img data-caption="Maecenas sed diam eget risus varius blandit sit amet non magna." src="http://placekitten.com/g/100/100"></a></li>
<li><img data-caption="Maecenas sed diam eget risus varius blandit sit amet non magna." src="http://placekitten.com/g/1000/800"></li>
<li><a href="http://placekitten.com/g/1000/800"><img data-caption="Maecenas sed diam eget risus varius blandit sit amet non magna." src="http://placekitten.com/g/100/100"></a></li>
<li><img data-caption="Maecenas sed diam eget risus varius blandit sit amet non magna." src="http://placekitten.com/g/1000/800"></li>
</ul>
The most of them i made successfully with fences but with the variable print render($item);
it prints me the default Drupal HTML output.
More informations about it you find here:
http://foundation.zurb.com/docs/clearing.php#clearingCode
I need separate variables for linked image path, image path, alt and title attribute.
Comments
Comment #1
JohnAlbinHope you found a solution. It is beyond the scope of Fences as we only deal with the markup around the $content, not with how the field content is rendered.