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. windowsXP用户被禁用导致不能网站登录

    1.查看系统事件,发现弹出如下的错误 2.根据上面的错误,我们很容易就可以判断是禁用了账户引起的 2.1后面进入计算机管理,再进入用户管理 2.2双击点开Internet来宾用于,发现此用户已经停用了 ...

  2. [stm32] 利用uC-BmpCvt软件生成uc-gui可调用的bmp图片

    >_<:学习贴图[bmp图]:首先找一张bmp格式的图片,然后下载uC-BmpCvt软件,打开改图片 >_<:然后点击Image-Conver-Into-Best Palatt ...

  3. Linux:Vim

    模式介绍: Vim具备6种基本模式和5中派生模式. 普通模式 启动后的默认模式,用于:移动光标.删除文本等待,常用命令: dd:删除当前行. [number]dd:连续执行number对应次数的dd命 ...

  4. 转载:python原生态的输入窗口抖动+输入特效

    python原生态的输入窗口抖动+输入特效 出处:https://coding.net/u/acee/p/PythonPowerInput/git/blob/master/test_power_inp ...

  5. atitit.GMT UTC Catitit.GMT UTC CST DST CET 星期 月份 节日 时间的不同本质and起源

    atitit.GMT UTC Catitit.GMT UTC CST DST CET 星期 月份 节日 时间的不同本质and起源 1. GMT(Greenwich Mean Time)是格林尼治平时 ...

  6. paip.提升效率---filter map reduce 的java 函数式编程实现

    #paip.提升效率---filter map reduce 的java 函数式编程实现 ======================================================= ...

  7. MVC 添加 httpHandlers 支持 .aspx 页面访问

    <?xml version="1.0"?> <!-- For more information on how to configure your ASP.NET ...

  8. 使用库函数API和C代码中嵌入汇编代码两种方式使用同一个系统调用

    本周作业的主要内容就是采用gcc嵌入汇编的方式调用system call. 系统调用其实就是操作系统提供的服务.我们平时编写的程序,如果仅仅是数值计算,那么所有的过程都是在用户态完成的,但是我们想将变 ...

  9. PHP读取流文件

    $filepath = 'http://www.vip.com/down'; $fp = fopen($filepath,"r"); Header("Content-ty ...

  10. 巧用在线html编辑器,保存文章到数据库(带html标签)

    1.对于读取数据库的文章字段刷新到web页面,如何使文章格式很好的显示出来,那么数据库应存text格式,并记录文章的个数(转换为html): 2.如何转换html格式,可以使文章从word直接粘贴到在 ...