1.产品详细页读取多张产品图片(栏目类型:产品)
{aspcms:cimages count=16 contentid=[content:id]}
<li onmouseover="showpic('[cimages:src]')"><img src="[cimages:src]" width="55" height="41" > </li>

{/aspcms:cimages}

2.首页广告大图切换(栏目类型:相册)

{aspcms:pic sort=118 num=3  order=order}
<li><a href="/"><img src="[pic:pic]" /></a></li>

{/aspcms:pic}

3.aspcms 首页调用单页中的内容要过滤html代码?
修改AspCms_MainClass.asp文件中下面代码
1146行开始:
修改前:
if len(decodeHtml(DateArray(6,i)))>infolen then 
nloopstr = replace(nloopstr,matchfield.value,left(replace(decodeHtml(DateArray(6,i)),"{aspcms:page}",""),infolen)&"…")
else
nloopstr = replace(nloopstr,matchfield.value,left(replace(decodeHtml(DateArray(6,i)),"{aspcms:page}",""),infolen))
end if
修改后
if len(decodeHtml(DateArray(6,i)))>infolen then 
nloopstr = replace(nloopstr,matchfield.value,left(replace(dropHtml(DateArray(6,i)),"{aspcms:page}",""),infolen)&"…")
else
nloopstr = replace(nloopstr,matchfield.value,left(replace(decodeHtml(DateArray(6,i)),"{aspcms:page}",""),infolen))
end if

4.在产品列表页显示自定义参数,如价格:[list:P_prices]
{aspcms:list size=10 order=time }  
<div class="pro_list_li">
<a href="[list:link]" class="pro_lis_img"><img height="104" width="104" alt="" src="[list:pic]"></a>
<span>CNY [list:P_prices]</span>
<a href="[list:link]" class="pro_lis_links">[list:title len=10]</a>
</div> 
{/aspcms:list}

需要用aspcms:list,不要用aspcms:productlist

4.设置文章或者产品显示推荐或者置顶项目时,使用order=isfeatured显示特别推荐的。
{aspcms:list size=10 order=isfeatured}  
<div class="pro_list_li">
<a href="[list:link]" class="pro_lis_img"><img height="104" width="104" alt="" src="[list:pic]"></a>
<span>CNY [list:P_prices]</span>
<a href="[list:link]" class="pro_lis_links">[list:title len=10]</a>
</div> 
{/aspcms:list}

istop 置顶 
isrecommend 推荐 
isimage图片新闻 
isfeatured特别推荐 
isheadline头条

5. 给满足条件的添加不同的样式
{aspcms:pic sort=130 num=4 order=id}   
<li {if:[pic:i]=1} style="display: list-item;"  {else} style="display: none;" {end if}  ><img height="338" width="762" alt="" src="[pic:pic]"></li> 
{/aspcms:pic}

6.列表页获取分类列表,比如产品列表页获取所有的产品分类。
{aspcms:navlist type={aspcms:parentsortid}} 
<li><a  {if:[subnavlist:sortid]={aspcms:sortid}} class="on"  {else} class="off" {end if} href="[navlist:link]">[navlist:name]</a></li>

{/aspcms:navlist}

 7.获取当前分类id:{aspcms:sortid}
 8.添加评论:参考D:\myApp\web\冲锋衣团购\web\plug\comment\comment.html文档

9在产品详细页面调用相关产品,2.X版本里有个BUG,就是news与content冲突,造成该页面调用出来的相关产品都是与该详细页面的产品同一款,而且连接也全部错误,这是BUG所致,下面是解决方法:

如果在产品详细页调用,则
将你的内容标签改成[product:
比如[content:info]改成[product:info]
然后用 {aspcms:content  来调用列表
 
(若在文章详细页,则
将你的内容标签改成[news:
比如[content:info]改成[news:info]
然后用 {aspcms:content  来调用列表)

产品详细页获取当前分类的推荐产品
当前详细页的基本信息不能用[content],而要使用[product]标签,因为[content]被推荐列表占用。同时使用造成冲突,推荐列表

里的图片显示不正确。
推荐列表:
{aspcms:content sort={aspcms:sortid} num=2  order=isrecommend} 
 
 <li> <a class="p_i_l_img"

href="[content:link]"><img src="[content:pic]" width="172" height="165" alt="" /></a> <span>CNY [content:P_prices]

</span> <a class="p_i_l_links" href="[content:link]" title="[content:title]">[content:title len=10]</a> <span

class="p_i_l_news">&nbsp;&nbsp;[content:P_leixing]&nbsp;&nbsp;</span> </li>
 
{/aspcms:content}
其他信息
如产品标题:[product:title]

aspcms常见问题解决方案的更多相关文章

  1. 使用jquery.qrcode生成二维码及常见问题解决方案

    转载文章  使用jquery.qrcode生成二维码及常见问题解决方案 一.jquery.qrcode.js介 jquery.qrcode.js 是一个纯浏览器 生成 QRcode 的 jQuery ...

  2. JWT 身份认证优缺点分析以及常见问题解决方案

    本文转载自:JWT 身份认证优缺点分析以及常见问题解决方案 Token 认证的优势 相比于 Session 认证的方式来说,使用 token 进行身份认证主要有下面三个优势: 1.无状态 token ...

  3. web移动端常见问题解决方案 (转)

    总结:本文总结了web移动端的常见问题并附上解决方案,包括:Meta标签.获取滚动条的值.禁止选择文本.屏蔽阴影.css之border-box.css3多文本换行.Retina屏幕高清图片.html5 ...

  4. Oracle 11g R2在 win7 64位的安装流程图解【含常见问题解决方案】

    ORACLE数据库系统是美国ORACLE公司(甲骨文)提供的以分布式数据库为核心的一组软件产品,是目前最流行的客户/服务器(CLIENT/SERVER)或B/S体系结构的数据库之一.Oracle 11 ...

  5. 移动端web常见问题解决方案

    meta基础知识 H5页面窗口自动调整到设备宽度,并禁止用户缩放页面 忽略将页面中的数字识别为电话号码 忽略Android平台中对邮箱地址的识别 当网站添加到主屏幕快速启动方式,可隐藏地址栏,仅针对i ...

  6. linux 常见问题&解决方案

    Q1: 错误重现: linux下 用tar -zxf xxx.tar.bz2 报错: gzip: stdin: not in gzip format tar: Child returned statu ...

  7. git操作之常见问题解决方案

    一.版本不一致 1. 错误信息: > git push -u origin master To ******.git ! [rejected] master -> master (non- ...

  8. Android WebView常见问题解决方案汇总

    问题目录: 1.为WebView自定义错误显示界面: 2.WebView cookies清理 3.清理cache 和历史记录 4.判断WebView是否已经滚动到页面底端 5.URL拦截 6.处理We ...

  9. 服务器发布MVC常见问题解决方案

    1  问题:IIS上部署MVC网站,打开后500错误:处理程序“ExtensionlessUrlHandler-Integrated-4.0”在其模块列表中有一个错误模块“ManagedPipelin ...

随机推荐

  1. poj 1035 Spell checker

    Spell checker Time Limit: 2000 MS Memory Limit: 65536 KB 64-bit integer IO format: %I64d , %I64u   J ...

  2. SQL Server 利用锁提示优化Row_number()-程序员需知

    网站中一些老页面仍采用Row_number类似的开窗函数进行分页处理,此时如果遭遇挖坟帖的情形可能就需要漫长的等待且消耗巨大.这里给大家介绍根据Row_number()特性采用特定锁Hint提升查询速 ...

  3. 记一次数据库调优过程(IIS发过来SQLSERVER 的FETCH API_CURSOR语句是神马?)

    记一次数据库调优过程(IIS发过来SQLSERVER 的FETCH API_CURSOR语句是神马?) 前几天帮客户优化一个数据库,那个数据库的大小是6G 这麽小的数据库按道理不会有太大的性能问题的, ...

  4. 在SSMS里批量删除表、存储过程等各种对象

    在SSMS里批量删除表.存储过程等各种对象 以前想找批量删除表或者存储过程的方法,原来SSMS的GUI界面也可以完成 请看下图,因为这次出差的时候要删除所有的存储过程,然后重建这些存储过程 而表.函数 ...

  5. 用msbuild跑xunit单元测试

    用了Visual Studio 2015之后,发现没法跑xUnit单元测试,xUnit.net runner不支持VS2015,TestDriven.Net也不支持VS2015. 等它们支持VS201 ...

  6. jenkins2 Jenkinsfile

    推荐使用Jenkinsfile代替将groovy脚本直接写在jenkins job里. 文章来自:http://www.ciandcd.com文中的代码来自可以从github下载: https://g ...

  7. jenkins2 hello pipeline

    文章来自:http://www.ciandcd.com 文中的代码来自可以从github下载: https://github.com/ciandcd   根据前面的2篇文章,我们已经安装和配置好了je ...

  8. JS open App(未安装就跳转下载页面)

    直接上代码var APPCommon = { downAppURl : "http://**/",//下载APP地址 downWeixin: "http://**&quo ...

  9. 更新日志 - fir.im 新版管理后台邀请内测

    上周,我们对fir.im 新版管理后台的页面结构和样式进行了优化,现在新版的管理后台开始邀请内测,感兴趣的伙伴可以发邮件到 **beta@fir.im** 申请.为了保证服务质量和对问题进行有效追踪, ...

  10. uva111动态规划之最长公共子序列

    http://acm.hust.edu.cn/vjudge/contest/view.action?cid=74662#problem/C     A B C D E C - Largest Rect ...