效果如下:增加一个父栏目标题标签{sdcms:other_followtitle},以实现对父标题的调用
实现方法:
1、找到inc/Create.asp,查找下列代码:
other_id=t0
2、在上面的代码后面回车添加如下代码:
'==================增加父名称================================= if Rs_P(5)<>0 then Sql="Select title from sd_other where id="&Rs_P(5) Set Rs_ft=Conn.Execute(Sql) other_followtitle=Rs_ft(0) Rs_ft.close Set Rs_ft=Nothing else other_followtitle=Rs_P(0) end if '==================增加父名称================================
3、找到570行,代码如下
Temp.Label "{sdcms:other_id}",other_id
4、在上边的代码后边添加如下代码:
Temp.Label "{sdcms:other_followtitle}",other_followtitle'增加父名称
5、在模板中添加{sdcms:other_followtitle}标签到你需要的位置
此标签为扩展的系统静态标签,只适用于单页面模板,sdcms版本为1.3.1