Z-blog的栏目分类有各自不同的id,可以采取约束每个分类id读取相应页面模板的办法,来加以区分。例如命令“catalog.asp?cate=1”(其中1为该分类在数据库里的id)即“分类1”单独指向模板页面“catalog1.html”;命令“catalog.asp?cate=2”即“分类2”单独指向模板页面“catalog2.html”……依此类推,来实现各栏目分类模板的个性化。 Z-Blog定义不同分类目录页面模板的步骤: 1.用文本工具打开Z-Blog的FUNCTION/目录下的c_system_base.asp文件,在2618行附近找到代码ArtList.template="CATALOG",将其替换为以下代码: ArtList.template="CATALOG" & intCateId 2.用文本工具打开Z-Blog根目录下的catalog.asp文件,在41行附近找到代码 ArtList.template="CATALOG",将其替换为以下代码: ArtList.template="CATALOG" & Request.QueryString("cate") If ArtList.template="" Then ArtList.template="CATALOG" Else ArtList.template="CATALOG" & Request.QueryString("cate") End If
追答无聊了有这陪我,自己去了就知道了 ditu/www.45633.wang?lbBd