网站TKD指的是网站的标题、关键词、描述,下面是pbootcms网站模板的tkd调用示例。

pb网站模板首页tkd

<title>{pboot:sitetitle}</title>

<meta name="keywords" content="{pboot:sitekeywords}">

<meta name="description" content="{pboot:sitedescription}">

pb网站模板栏目页tkd

<title>{pboot:if('{sort:title}'=='')}{pboot:pagetitle}{else}{sort:title}{/pboot:if}</title>

<meta name="keywords" content="{pboot:if('{sort:keywords}'=='')}{pboot:pagekeywords}{else}{sort:keywords}{/pboot:if}">

<meta name="description" content="{pboot:if('{sort:description}'=='')}{pboot:pagedescription}{else}{sort:description}{/pboot:if}">

pb网站模板内页tkd

<title>{content:title}-{pboot:sitetitle}</title>

<meta name="keywords" content="{content:keywords}">

<meta name="description" content="{content:description}">

列表时间格式化[list:date style=Y-m-d]

内容详情页时间格式化{content:date style=Y-m-d}

栏目列表里调用当前栏目名称和链接

栏目名称:[list:sortname]

链接:[list:sortlink]

当前位置:{pboot:position}

访问数量:{content:visits}

内容:{content:content}

作者:{content:author}

标题:{content:title}

发布时间:{content:date style=Y-m-d}

来源:{content:source}

搜索 <strong>{pboot:keyword}</strong> 的结果

声明:本站部分资源来自网络转载,版权归原作者所有,如有侵犯到您的权益 请联系邮箱:1845609988@qq.com 我们将配合处理!

原文地址:pbootcms网站模板基本TKD调用标签大全发布于2023-05-28 19:48:15