2013-05-29 73 views
0

我改为Productimage显示Productmovies的Flowplayer。缩略图到产品图片的网址Magento在Flowplayer

在这个扩展也有一个小thumbnailpreview: http://demo.icebergcommerce.com/htc-touch-diamond.html?vgds=3 TAB“视频”

现在我想设置缩略图预览,而不是Videoframe预览中的Flowplayer。

我可以解决显示一个图片,但不是缩略图。

在下面的代码:

  ...flashvars='config={"playlist":["URL THUMBNAIL HERE",{"scaling":"fit", {$autoplayConfig} "url":"{$this->getUrl($this->video_value)}"}],"canvas":{"backgroundColor":"#000000","backgroundGradient":"none"}}' />... 

我还发现在另一个文件中,其中缩略图发布,源代码如下:

<div class="more-views"> 
     <h2><?php echo $this->__('Videos') ?></h2> 
     <?php if (count($this->getVideoGallery()) > 0): ?> 
     <ul class="video-gallery-links"> 
     <?php foreach ($this->getVideoGallery() as $_video): ?> 
      <li> 
       <a class="video-thumb" href="<?php echo $this->getVideoGalleryUrl($_video); ?>" style="width:78px; height:56px" target="_blank" onclick="<?php echo $this->getJsObjectName(); ?>.setVideo('<?php echo $_video['value_id']; ?>'); return false;" title="<?php echo $this->htmlEscape($_video['label']) ?>"> 
        <span></span> 
        <img style="margin-top:-11px" src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_video['file'])->resize(78,78); ?>" width="78" height="78" alt="<?php echo $this->htmlEscape($_video['label']) ?>" /> 
       </a> 
      </li> 
     <?php endforeach; ?> 
     </ul> 
     <?php endif;?> 
    </div> 

所以我要实现的是对哪些代码每一个视频,而不是videoframe的具体产品thumbnail-image将显示?

回答

0

试试这个:

<img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(300); ?>" width="300" height="300" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /> 

您可以将大小更改为你想要的东西,但是这仅仅是从产品list.phtml页面的缩略图。

+0

非常感谢,但这没有奏效。现在我看到只是黑屏:'code' \t MagentoUserGermany

相关问题