Добрый день, установил модуль [module=cloud_zoom], создал node-product.tpl.php и вывел там код:
<?php
<div class="product-image" style="float:left; margin-right:10px;">
<?php
// Grabs the firsts image path and sets $imagePath.
$imagePath = $node->field_image_cache['0']['filepath'];
?>
<div id="main-image" style="float:left; margin-bottom:10px;">
<?php // this is your main 'default' large image & the zoomed image ?>
<a href='/sites/default/files/imagecache/product_full/<? print $node->field_image_cache[0]['filepath']; ?>' class='cloud-zoom' id='zoom1' rel='tint: "#002b54", tintOpacity:0.5, smoothMove:5, adjustX:10, zoomWidth:100, zoomHeight:75'>
<img src="/sites/default/files/imagecache/product/<? print $node->field_image_cache[0]['filepath']; ?>" alt='<?php print $node->field_image_cache[0]['data']['alt']; ?>' title='<?php print $node->field_image_cache[0]['data']['title']; ?>' />
</a>
</div>
<?php // all image display - ie the thumbnail gallery loop ?>
<div class="other_imgs" style="width:300px;">
<?php
// get all images
foreach ($node->field_image_cache as $images) {
?>
<? // output the small / thumbnail image display ?>
<a href="/sites/default/files/imagecache/product_full/<?php print $images['filepath']; ?>" class='cloud-zoom-gallery' rel="useZoom: 'zoom1', smallImage: '/sites/default/files/imagecache/product/<? print $images['filepath']; ?>' ">
<img src="/sites/default/files/imagecache/uc_thumbnail/<?php print $images['filepath']; ?>" title="<? print $node->field_image_cache[0]['data']['title']; ?>" alt="<? print $images['data']['alt']; ?>">
</a>
<?php
}
?>
</div><!--/other_imgs-->
</div><!--product-image-->
?>
В отображении полей поставил Cloud Zoom: 300wide → 900wide, но такое ощущение, когда я переклачаю стиль отображения пресетов imagecache - это не работает.
Вот что в итоге у меня получилось:
Т.е. когда я навожу на главное изображение → правее должно появляться изображение с 3х кратным увеличением и в окошке побольше, а уменя не получается так.. Помогите!