• 加入收藏  设为首页
aspcms

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

时间:2022/12/10 1:26:02   作者:未知   来源:网络收集   阅读:4   评论:0
内容摘要:aspcmstag标签列表怎么在首页调用回答:经本人小改一下index.asp页面TAG可以首页调用了,代码贴出来分享<!--#includefile="inc/AspCms_SettingClass.asp"--><%ifrunMode="0"thendimtagsdimtemplateobj,te...

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应该是用来分页的,我们把它当作调用数量使用.

标签:标签 列表 首页 调用 
相关评论

Powered by www.xxpw.top @ 2019-2031 星星派屋 All Rights Reserved .
本站服务器及带宽由 江苏三欧网络信息技术 友情赞助.  友情链接交换联系QQ:317261118
如果有任何侵权问题,或者内容有错误需要纠错,请联系QQ:317261118,我们会在72小时以内处理.