aspcms免费开源企业网站开发建设管理系统源码程序

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 2338|回复: 0

aspcms TAG标签列表怎么在首页调用

[复制链接]

187

主题

188

帖子

609

积分

高级会员

Rank: 4

积分
609
发表于 2019-3-28 11:46:50 | 显示全部楼层 |阅读模式
aspcms tag标签列表怎么在首页调用
回答:
经本人小改一下index.asp页面 TAG可以首页调用了,代码贴出来分享

<!--#include file="inc/AspCms_SettingClass.asp" -->
< %
if runMode="0" then
dim tags
dim templateobj,templatePath : set templateobj = new TemplateClass
templatePath=sitePath&"/"&"templates/"&setting.defaultTemplate&"/"&setting.htmlFilePath&"/index.html"
'die templatePath
if not CheckTemplateFile(templatePath) then echo "index.html"&err_16
with templateObj
.content=loadFile(templatePath)
.parseHtml()
.parseCommon
templateObj.parseList 0,1,"taglist","","tags"
templateObj.parseCommon
tags=templateObj.content
echo .content
end with
set templateobj =nothing : terminateAllObjects
Else
On Error Resume Next
Server.Transfer(sitePath&setting.languagepath&"index"&FileExt)
If -2147467259 = Err.Number Then Response.Write "<meta http-equiv='Content-Type' content='text/html;charset=gb2312'>缺少首页文件,请登录后台生成首页文件!"
end If
If DebugMode Then echo timer - AppSpan
%>

调用标签
{aspcms:taglist size=10 order=visits}
< A href="[taglist:link]" title="[taglist:title]">[taglist:title]</A>
{/aspcms:taglist}
这里面的size应该是用来分页的,我们把它当作调用数量使用,哈哈,希望大家支持!~
回复

使用道具 举报

*滑块验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|aspcms免费开源企业网站开发建设管理系统源码程序 ( 冀ICP备17022052号-2|网站地图

GMT+8, 2024-4-29 13:39 , Processed in 0.039734 second(s), 19 queries .

Powered by aspcms免费开源企业网站开发建设管理系统源码程序

© 2001-2025 aspcms免费开源企业网站开发建设管理系统源码程序

快速回复 返回顶部 返回列表