0$房天下问答|ecshop如何不同楼层显示不同品牌?$https://m.fang.com/ask/ask_9691558.html$https://static.soufunimg.com/common_m/m_public/201511/images/asksharedefault.png
packc/pages/ask/detail/detail?askid=9691558
-
ecshop如何不同楼层显示不同品牌?
更多
楼层
举报
提问者:飞鹰主页
发布于2015-03-27 北京市
共1个回答
-
-
-
hepohht
丨Lv 3
首页楼层般都cat_goods.lbi文件通台控制楼层楼层品牌调用要相应位置填写我举例仅供参考哦 <?php $GLOBALS['smarty']->assign('catbrand',get_cat_brands($GLOBALS['smarty']->_var['goods_cat']['id'], 5)); ?> {foreach from=$catbrand item=item name=catbrand} <li class="li {if $smarty.foreach.catbrand.first}first{/if} {if $smarty.foreach.catbrand.last}SCREEN-SHOW{/if}"> <div class="img"><a href="{$item.url}" target="_blank" title="{$item.name|escape:html}"><img src="data/brandlogo/{$item.logo}" width="85" height="50" alt="{$item.name|escape:html}" /></a></div> <h4><a href="{$item.url}" target="_blank" title="{$item.name|escape:html}">{$item.name}</a></h4> <p>{$item.desc|truncate:12}</p> </li> {/foreach}
免责声明:问答内容均来源于互联网用户,房天下对其内容不负责任,如有版权或其他问题可以联系房天下进行删除。

关注成功