Views rewrite output for image url add divs So in views , I had created a block display with this fields:


image field : imagecache URL (exclude from display) 
image field :    imagecache for resized image (exclude from display)
image field :    data (description) (exclude from display)
global field : rewrite the output with 



  &lt;a class="chocolat-image" href="[field_galerie_image_vdl_fid]" 
           title="[field_galerie_image_vdl_data]"&gt;
            [field_galerie_image_vdl_fid_1] &lt;/a&gt;


Stripped out all wrapper elements like  , and using a field template with:

&lt;?php if (!empty($title)): ?&gt;
  &lt;h3&gt;&lt;?php print $title; ?&gt;&lt;/h3&gt;
&lt;?php endif; ?&gt;
&lt;?php foreach ($rows as $id =&gt; $row): ?&gt;
  &lt;div class="&lt;?php print $classes[$id]; ?&gt; chocolat-parent" data-chocolat-title="set title"&gt;
    &lt;?php print $row; ?&gt;
  &lt;/div&gt;
&lt;?php endforeach; ?&gt;


but in result I get:

&lt;div class="views-row views-row-1 views-row-odd views-row-first chocolat-parent" data-chocolat-title="set title"&gt;

           &lt;a class="chocolat-image" href="&amp;lt;div class=" field-item="" field-item-0"=""&gt;http://caucadis.vmdev/sites/all/media/imagecache/galleryformatter_slide/galerie_images_vdl/2016/22/people-q-c-640-480-4_0.jpg&lt;/a&gt;&lt;/div&gt;


So what do I missed ?

thanks
Found out, to have unique items for my display