ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
# 内容列表 内容循环标签可以调用出后台添加的所有内容基础信息 ## 使用范围 * 任何页面 ## 代码 ~~~ {contentlist name="vo"} {$vo.class_id} {/contentlist} ~~~ 调用属性 | 属性 | 可用值 | 描述 | 演示 | | --- | --- | --- | --- | | class_id | 1 | 栏目ID,可为变量 | class_id=1 或者 class_id="1,2,3" | | sub | true | 调用class_id下的所有子栏目内容 | sub=true | | image | true|false | true用带形象图内容,false调用不带形象图内容 | image=true 或 image=false | | module | Article | 调用指定模块内容 | module="Article" | | not_id | 1|1,2,3 | 排除指定的文章ID | not_id=1 或者 not_id="1,2,3" | | pos_id | 1|1,2,3 | 推荐位ID | pos_id=1 | | where | SQL | 扩展SQL条件 | where="A.content_id = 1" | | limit | 10 | 调用数量,默认条数 | limit=10 | | order | time|class_id |views | 内容排序 | order="time desc" | 调用值 | 属性 | 描述 | | --- | --- | | content_id | 内容ID | | class_id | 栏目ID | | title | 内容标题 | | keywords | 关键词 | | description | 描述 | | time | 发布时间(格式化后使用) | | image | 形象图 | | copyfrom | 来源 | | views | 浏览次数 | | class_name | 栏目名称 | | class_image | 栏目形象图 | | curl | 栏目连接 | | aurl | 文章连接 | | i | 循环序号 |