首页美化求助

2016-07-07 16:17 来源:www.chinab4c.com 作者:ecshop专家



我想把首页产品图片的alt属性显示为goods表段的seller_note字段内容,该怎么改函数?
具体显示代码是recommend_best.lbi文件:
<!-- {if $best_goods} -->
<div class="module">
<div class="caption">
<span><a href="../search.php?intro=best">更多>></a></span>{$lang.best_goods}
</div>
<div class="content">
<ul class="goods_grid">
<!--{foreach from=$best_goods item=goods }-->
<li>
<p class="img"><a href="{$goods.url}"><img src="{$goods.thumb}" alt="{$goods.name|escape:html}(这里显示seller_note字段内容)"/></a></p>
<p class="name"><a href="{$goods.url}" title="{$goods.name|escape:html}">{$goods.short_style_name}</a></p>
<p class="price">
<!-- {if $goods.promote_price neq ""} -->
{$goods.promote_price}
<!-- {else}-->
{$goods.shop_price}
<!--{/if}-->
</p>
</li>
<!--{/foreach}-->
</ul>
</div>
</div>
<!-- {/if} -->