ASPCMS调用指定内容列表

作者: 时间:
浏览 : 701
1、ASPCMS调用指定内容列表
所有页面都可调用(无分页)
    {aspcms:content sort=2 num=4 order=order star=1}
    [content:id]编号
    [content:i]计数
    [content:title]标题
    [content:content]内容
    [content:link]链接
    [content:isoutlink] 是否为外部链接
    [content:titlecolor]标题颜色
    [content:sortname]分类名称
    [content:sortlink]分类链接
    [content:date]日期
    [content:visits]浏览次数
    [content:author]作者
    [content:source]来源
    [content:videourl] 内页视频
    [content:downurl]下载地址
    [content:tag]tag标签
    [content:istop]置顶
    [content:isrecommend]推荐
    [content:isimage]图片新闻
    [content:isfeatured]特别推荐
    [content:isheadline]头条
    [content:desc]描述
    [content:pic]图片
    {/aspcms:content}
sort 分类ID
num 显示数量
order 排序规则:
id:根据id降序
visits:根据浏览量降序
time:根据添加时间降序
order:top>isrecommend>后台排序>time
istop:置顶>后台排序>time
isrecommend:推荐>后台排序>time
isimagenews:图片新闻>后台排序>time
isheadline:头条>后台排序>time
isfeatured:特别推荐 >后台排序>time
srar 星级(1,2,3,4,5)
2、ASPCMS调用分类名称及链接
    {aspcms:sortname}分类名称
    {aspcms:parentsortid}上级分类ID
    {aspcms:sortid}分类ID
    {aspcms:topsortid}顶级分类ID
    {aspcms:SortContent} 栏目的描述
    {aspcms:indeximage} 栏目图片,单页使用[about:indeximage]
    {aspcms:pic} 栏目图片缩略图
3、ASPCMS调用指定分类信息
    {aspcms:type sort=8}
      [type:i]   计数
      [type:name] 分类名称
      [type:link] 分类链接
      [type:info]  分类信息
      [type:title] 分类标题
      [type:ico]   分类图片
      [type:enname] 分类英文名称
    {/aspcms:type}
4、ASPCMS调用指定单篇内容
    {aspcms:about sort=8 len=150 }
    [about:i] 计数
    [about:name]  分类名称
    [about:enname] 分类英文名称
    [about:info len=80] 文章内容
    [about:link]   文章链接
    [about:pic]    文章缩略图
    [about:title]   页面标题
    [about:keyword] 页面关键字
    [about:desc]    页面描述信息
    {/aspcms:about}
5、ASPCMS单页调用标签
    [about:title] 标题(需要在添加分类时设置)
    [about:keyword] 关键词(需要在添加分类时设置)
    [about:desc] 描述 (需要在添加分类时设置)
    [about:info]        详细内容(需要在添加分类时设置)
    [about:IndexImage] 栏目图片(需要在添加分类时设置)
    [about:pic] 文章缩略图(需要在添加分类时设置)
6、ASPCMS调用留言板内容标签
    {aspcms:gbook num=4 order=order}
    [gbook:i]计数
    [gbook:title]标题
    [gbook:name]姓名
    [gbook:status]留言状态
    [gbook:winfo]留言内容
    [gbook:wdate]留言时间
    [gbook:rinfo]回复内容
    [gbook:rdate]回复时间
    {/aspcms:gbook}
7、ASPCMS评论内容调用标签
    {aspcms:comment}
    [comment:i]评论计数
    [comment:name]评论人
    [comment:link]评论文章地址
    [comment:ip]评论人IP
    [comment:info len=5]评论内容
    [comment:date style=yy-m-d]评论时间
    {/aspcms:comment}
8、ASPCMS列表页调用标签
    {aspcms:sorttitle} 页面标题(需要在添加分类时设置)
    {aspcms:sortkeyword} 页面关键词(需要在添加分类时设置)
    {aspcms:sortdesc} 页面描述(需要在添加分类时设置)
    {aspcms:SortContent}    栏目描述(需要在添加分类时设置)
    {aspcms:indeximage}     栏目图片(需要在添加分类时设置)
    {aspcms:list size=10 order=id}
    [list:id] 编号
    [list:i]计数
    [list:link]链接
    [list:title] 标题
    [list:titlecolor]标题颜色
    [list:content]内容
    [list:sortname]分类名称
    [list:sortlink]分类链接
    [list:date]日期
    [list:visits]浏览次数
    [list:author]作者
    [list:source]来源
    [list:tag]tag标签
    [list:isoutlink] 是否为外部链接
    [list:downurl]下载地址
    [list:istop]置顶
    [list:isrecommend]推荐
    [list:isimage]图片新闻
    [list:isfeatured]特别推荐
    [list:isheadline]头条
    [list:desc] 描述
    [list:pic] 图片
    {/aspcms:list}
    [list:pagenumber len=5]  分页条调用标签
order 排序规则:
id:根据id降序
visits:根据浏览量降序
time:根据添加时间降序
order:top>isrecommend>后台排序>time
istop:置顶>后台排序>time
isrecommend:推荐>后台排序>time
isimagenews:图片新闻>后台排序>time
isheadline:头条>后台排序>time
isfeatured:特别推荐 >后台排序>time
9、ASPCMS详细可调用标签
    [news:title]标题
    [news:titlecolor]标题颜色
    [news:author]作者
    [news:source]来源
    [news:videourl]视频
    [news:sortname]分类名称
    [news:sortlink]分类链接
    [news:date]日期
    [news:visits]浏览次数
    [news:tag]tag标签
    [news:linktag]带链接的tag标签
    [news:istop]置顶
    [news:isrecommend]推荐
    [news:isimage]图片新闻
    [news:isfeatured]特别推荐
    [news:isheadline]头条
    [news:link]文章链接
    [news:downurl]下载地址
    [news:keyword]关键词 (需要在添加内容时可以设置)
    [news:desc]描述 (在添加内容时可以设置)
    [news:pic]缩略图
    [news:info]内容
    [news:pics]多图
    {aspcms:icomment} 评论功能调用
    {aspcms:comment}(aspcms2.5以前版本)评论功能调用
    {aspcms:prev}上一篇(文字加链接)
    {aspcms:next}下一篇(文字加链接)
    {aspcms:nexttitle} 下一篇的题目
    {aspcms:prevtitle} 上一篇的题目
    {aspcms:nextlink}下一篇的链接
    {aspcms:prevlink}上一篇的链接
    {aspcms:page}内容分页  在编辑内容时插入到内容中即可
10、ASPCMS多图片的处理
    {aspcms:cimages count=5 contentid=1}
    [cimages:i] 计数
    [cimages:src]图片地址
    {/aspcms:cimages}
count 输出数量,小于1或者不为数字的作为0处理,不输出
contentid 输出的内容id,一般在内容页调用,只需填写 contentid=[content:id]即可,错误的输入被赋值为-1
11、ASPCMS当前位置
    首页{aspcms:position} >>[position:link]{/aspcms:position}
调用结果:首页 >>新闻发布 >>公司新闻
12、ASPCMS首页调用留言
    {aspcms:form}调用自定义表单项

Tag标签:

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注