
指定内容
适用范围:全站任意地方均可使用
标签作用:用于调取指定 id 的内容
调取指定内容
{bd:content scode="1" }
<div>{$content.description}</div>
<div >
<a href="{$content.link}">更多内容</a>
</div>
{/bd:content}控制参数
| 参数 | 描述 |
|---|---|
id | 内容 ID,用于控制输出的内容,适用单页或列表页内容 |
scode | 栏目编码,用于控制输出的栏目 |
警告
`id` 与 `scode` 二选一 必须要填写其中一个才能获取数据调用标签
| 标签 | 描述 |
|---|---|
{$content.id} | 编号 |
{$content.scode} | 栏目编码 |
{$content.subscode} | 副栏目编码 |
{$content.sortname} | 栏目名称 |
{$content.subsortname} | 副栏目名称 |
{$content.sortlink} | 栏目链接 |
{$content.subsortlink} | 副栏目链接 |
{$content.title} | 标题 |
{$content.titlecolor} | 标题颜色 |
{$content.subtitle} | 副标题 |
{$content.author} | 作者 |
{$content.source} | 来源 |
{$content.link} | 链接 |
{$content.outlink} | 外部链接 |
{$content.date} | 发布日期 |
{$content.ico} | 缩略图 |
{$content.content} | 内容 |
{$content.tags} | 直接输出 tags |
{$content.enclosure} | 附件 |
{$content.enclosuresize} | 附件大小 |
{$content.keywords} | 关键词 |
{$content.description} | 描述 |
{$content.istop} | 是否置顶 |
{$content.isrecommend} | 是否推荐 |
{$content.isheadline} | 是否头条 |
{$content.visits} | 访问数量 |
{$content.likes} | 点赞数量 |
{$content.oppose} | 反对数量 |
{$content.likeslink} | 点赞链接 |
{$content.opposelink} | 反对链接 |
{$content.ext_***} | 调取扩展字段内容 |
希望以上内容对你有所帮助!如果还有其他问题,请随时提问。 各类知识收集 拥有多年CMS企业建站经验,对 iCMS, LeCMS, ClassCMS, Fastadmin, BadouCMS, PbootCMS, PHPCMS, 易优CMS, YzmCMS, 讯睿CMS, 极致CMS, Wordpress, HkCMS, YznCMS, WellCMS, 等各类cms的相互转化,程序开发,网站制作,bug修复,程序杀毒,插件定制都可以提供最佳解决方案。



