0

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

<a class="chocolat-image" href="[field_galerie_image_vdl_fid]" title="[field_galerie_image_vdl_data]"> [field_galerie_image_vdl_fid_1] </a>

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

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

but in result I get:

<div class="views-row views-row-1 views-row-odd views-row-first chocolat-parent" data-chocolat-title="set title">

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

So what do I missed ?

thanks

0

Found out, to have unique items for my display

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.