本帖最后由 shouhusun 于 2009-10-11 16:06 编辑
在ss7正式版的首页添加ECMall商品图片
记录付费主题, 价格:金币 2 个
SupeSite模板
风格名称 ss7正式版
适用版本 SupeSite6.0.x
语言编码 GBK
风格作者 网友
版权所属 网络
风格转换者 仿制
支持网站 http://www.91chinalsh.com/
方法如下:进入ECMall后台,网站管理->数据调用->添加数据调用
简单描述:资讯首页左面商品展示。其他的不变,商品数量:6,商品名称长度:30
然后是数据调用模板。
模板顶部: <UL class="thumblist clearfix">
模板循环部分:<LI><A href="{goods_url}"
target=_blank><IMG alt="{goods_name}"
src="{goods_img_url}"></A>
<P class=infolist><SPAN class=price
style="COLOR:#656D77">价格: {goods_price} 元</SPAN></P>
</LI>
模板底部: </ul>
提交表单,生成代码,记住代码:<script src="http://xxx.xxx.com/index.php?app=datacall&id=1"></script>再建一个数据调用,简单描述:资讯首页右面商品展示。方法和上面一样,但是商品数量改成:2
然后进入ss7后台,系统管理->模板编辑->index[编辑]
在261行代码的下面添加如下代码:
<!--{if !empty($channels['menus']['e_shop'])}-->
<div class="column">
<!--{block name="uchphoto" parameter="updatetime/604800/order/updatetime DESC/limit/0,6/cachetime/86585/subjectlen/12/cachename/uchphoto"}-->
<div class="col1">
<div class="global_module">
<div class="global_module1_caption"><h3>商 城</h3><a class="more" href="http://xxx.xxx.com/xxx/index.php">更多>></a></div>
<ul class="global_piclist">
<script src="http://xxx.xxx.com/xxx/index.php?app=datacall&id=1"></script></ul>
</div>
</div><!--col1 end-->
<!--{block name="uchphoto" parameter="dateline/604800/order/picnum DESC,updatetime DESC/limit/0,2/cachetime/89477/subjectlen/14/subjectdot/0/cachename/uchphototop"}-->
<div class="col2">
<div class="global_module bg_fff">
<div class="global_module2_caption"><h3>精彩推荐</h3></div>
<ul class="global_piclist">
<script src="http://xxx.xxx.com/xxx/index.php?app=datacall&id=2"></script>
</ul>
</div>
</div><!--col2 end-->
</div><!--column end-->
<!--{/if}-->
参考
https://discuz.dismall.com/viewthread ... p;extra=&page=1
网友:狼的马甲
修改
因为本站上的大部分发贴都要金币,没办法而为,请需要者谅解!!! |