1、标题、关键词、描述 和 网站系统设置标签
网站系统标签:
{webroot}作用:系统路径
{weburl}作用:网站URL
{sdcms[webcount]}作用:网站第三方流量统计代码
{sdcms[webicp]}作用:网站备案号
{sdcms[webname]}作用:显示网站名称
{sdcms[seotitle]}作用:显示优化标题
{sdcms[seokey]}作用:网站SEO关键字
{sdcms[seodesc]}作用:网站SEO描述
{webmode}作用:系统运行模式(数值:1为动态,2为伪静态,3为静态)
{htmldir}作用:静态模式下,生成文件目录
备注:sd_config表中的任意行数据均可通过下面的方式调用
举例,我们要调用表setkey字段值为”agreement”的setvalue的内容时,只需要这样书写即可
{sdcms[agreement]},即其中的”agreement”可替换为其他的字段名称
首页:
列表页:
内容页:
友情链接:
文字友情链接:
{sdcms:rs top=”0″ table=”sd_expand_link” where=”islock=1 and islogo=0″ order=”id desc”}
{rs:eof}暂无链接{/rs:eof}
{sdcms.cutstr(KaTeX parse error: Expected 'EOF', got '}' at position 18: …[webname],20,0)}̲</a> {/sdcms:rs…rs[weburl]}”>
{/sdcms:rs}
导航:
- 网站首页
- {sdcms:rs top=”0″ table=”sd_category” where=”followid=0 and ismenu=1″ order=”ordnum,cateid” var=”sdcms_rp:cateid”}
调用单页:
——–【任意页面】调用单页简介———
{sdcms:rs table=”sd_model_page” where=”classid=1″}
{sdcms.dehtml(KaTeX parse error: Expected 'EOF', got '}' at position 11: rs[intro])}̲ {/sdcms:rs} ——…rs[content],htmlrule)}
{/sdcms:rs}
{if get_content_page<>””}{get_content_page}{/if}2.常用公共函数,标签[asp]
截取字符串:
{sdcms.cutstr(KaTeX parse error: Expected 'EOF', got '}' at position 16: rs[title],20,1)}̲ – 截取字符串,并显示省略号…rs[intro])} – 过滤html代码
{sdcms.cutstr(sdcms.nohtml($rs[intro]),200,1)} – 截取字符串并过滤html代码,并显示省略号图片输出:
{if KaTeX parse error: Expected