publiccms中将推荐页的内容显示在页面片段中

简介: publiccms中将推荐页的内容显示在页面片段中

遍历的代码如下:

<#list page.list>
    <ul>
    <#items as a>
        <li>
            <figure>
                <!-- ${a.itemType!} : ${a.itemId!} ,place/redirect:count and 301 jump to a.url,place/click:count and 302 jump to a.url-->
                <a href="${site.dynamicPath}place/redirect?id=${a.id!}" target="_blank"><img src="${a.cover!}"></a>
                <figcaption><a href="${a.url!}" target="_blank">${a.title!}</a>(${a.clicks!})</figcaption>
                扩展字段:<#assign attribute=getPlaceAttribute(a.id)/>
                 ${getPlaceAttribute(a.id).lifeteam_jieshao!?no_esc}
            </figure>
        </li>
    </#items>
    </ul>
</#list>

目录
相关文章
|
4月前
markdown增加目录索引,实现点击目录跳转到对应的内容目录标题
markdown增加目录索引,实现点击目录跳转到对应的内容目录标题
80 0
jq点击导航页面滑动到对应内容demo效果示例(整理)
jq点击导航页面滑动到对应内容demo效果示例(整理)
|
前端开发
A2021-A2022项目展示页面的内容。
A2021-A2022项目展示页面的内容。
69 0
A2021-A2022项目展示页面的内容。
publiccms中将推荐页的内容显示在页面片段中
publiccms中将推荐页的内容显示在页面片段中
54 0
publiccms中将推荐页的内容显示在页面片段中
|
JavaScript 安全 前端开发

相关实验场景

更多