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

JohnAlbin’s picture

Status: Active » Closed (won't fix)

Hope 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.