<@cms_favorite_content>
获取收藏内容数据列表,内嵌<#list DataList as content>${content.title}</#list>遍历数据
| 属性名 | 类型 | 必填 | 可用值 | 描述 | 默认值 |
|---|---|---|---|---|---|
| page | BOOLEAN | 否 | true=是 false=否 | 是否分页获取数据 | false |
| size | INTEGER | 否 | (分页)数据条数,默认:10 | ||
| condition | STRING | 否 | 扩展sql条件语句,例如:title like 'a%' | ||
| uid | INTEGER | 否 | 会员ID |
| 属性名 | 描述 | 类型 |
|---|---|---|
| attributes | 内容属性标识列表 | String[] |
| author | 作者 | String |
| catalogAncestors | 所属栏目祖级IDs | String |
| catalogId | 所属栏目ID | Long |
| commentCount | 评论数(非实时) | Long |
| contentId | 内容ID | Long |
| contentType | 内容类型 | String |
| contributorId | 投稿用户ID | Long |
| createBy | 创建者 | String |
| createTime | 创建时间 | LocalDateTime |
| deptCode | 所属部门编码 | String |
| deptId | 所属部门ID | Long |
| editor | 编辑 | String |
| favoriteCount | 收藏数(非实时) | Long |
| images | 封面图列表 | List<String> |
| keywords | 关键词 | String[] |
| likeCount | 点赞数(非实时) | Long |
| link | 内容链接 | String |
| linkFlag | 是否链接内容 | String |
| logo | 封面图 | String |
| logoSrc | 封面图访问路径 | String |
| original | 是否原创 | String |
| prop1 | 备用字段1 | String |
| prop2 | 备用字段2 | String |
| prop3 | 备用字段3 | String |
| prop4 | 备用字段4 | String |
| publishDate | 发布时间 | LocalDateTime |
| redirectUrl | 跳转链接(linkFlag==Y) | String |
| remark | 备注 | String |
| seoDescription | SEO描述 | String |
| seoKeywords | SEO关键词 | String |
| seoTitle | SEO标题 | String |
| shortTitle | 短标题 | String |
| siteId | 所属站点ID | Long |
| sortFlag | 排序值 | Long |
| source | 来源 | String |
| sourceUrl | 来源URL | String |
| status | 内容状态 | String |
| subTitle | 副标题 | String |
| summary | 摘要 | String |
| tags | TAGs | String[] |
| title | 标题 | String |
| titleStyle | 标题样式 | String |
| topCatalog | 所属顶级栏目 | Long |
| topDate | 置顶结束时间 | LocalDateTime |
| topFlag | 置顶标识 | Long |
| updateBy | 更新者 | String |
| updateTime | 更新时间 | LocalDateTime |
| viewCount | 文章浏览数(非实时) | Long |
使用场景:会员中心收藏内容列表
<@cms_favorite_content uid="${Member.memberId}" page="true" size="16">
<#list DataList as content>
<li class="item ${(content.logo?? && content.logo !='')?then('', 'item-no-thumb')}" data-id="${content.contentId}">
<#if (content.logo!'')!=''>
<div class="item-img">
<a class="item-img-inner" href="${content.link}" title="${content.title}" target="_blank">
<img width="480" height="300" src="${imageSize(content.logo,480,300)}" alt="${content.title}" />
</a>
<#if content.tags?size gt 0>
<#list content.tags as item>
<a class="item-category" href="#" target="_blank">${content.tags[0]}</a>
</#list>
</#if>
</div>
</#if>
<div class="item-content">
<h2 class="item-title">
<a href="${content.link}" target="_blank">${content.title}</a>
</h2>
<div class="item-excerpt">
<p>${content.summary}</p>
</div>
<div class="item-meta">
<span class="item-meta-li date">${dateFormat(content.publishDate,'yyyy年MM月dd日 HH点mm分')}</span>
</div>
</div>
</li>
</#list>
</@cms_favorite_content>