安企CMS#下一篇文档标签#

说明:用于获取下一篇文档数据

使用方法:{% nextArchive 变量名称 %} 如将变量定义为 next {% nextArchive next %}…{% endnextArchive %}

nextArchive 不支持参数。


{\(<a href="/product/15399.html" data-anchor="10088">7</a>}nextArchive 支持的字段有:</h3><ul style="text-indent: 0px; text-align: start;"><li>文档ID <span style="color: rgb(0, 0, 0); background-color: rgb(240, 240, 240);"><code>Id</code></span></li><li>文档标题 <span style="color: rgb(0, 0, 0); background-color: rgb(240, 240, 240);"><code>Title</code></span></li><li>文档链接 <span style="color: rgb(0, 0, 0); background-color: rgb(240, 240, 240);"><code>Link</code></span></li><li>文档关键词 <span style="color: rgb(0, 0, 0); background-color: rgb(240, 240, 240);"><code>Keywords</code></span></li><li>文档描述 <span style="color: rgb(0, 0, 0); background-color: rgb(240, 240, 240);"><code>Description</code></span></li><li>文档分类ID <span style="color: rgb(0, 0, 0); background-color: rgb(240, 240, 240);"><code>CategoryId</code></span></li><li>文档浏览量 <span style="color: rgb(0, 0, 0); background-color: rgb(240, 240, 240);"><code>Views</code></span></li><li>文档封面首图 <span style="color: rgb(0, 0, 0); background-color: rgb(240, 240, 240);"><code>Logo</code></span></li><li>文档封面缩略图 {\)17}Thumb
  • 文档评论数量 CommentCount
  • 文档添加时间 CreatedTime
  • 文档更新时间 UpdatedTime

  • 代码示例


    {% nextArchive next %}
    下一篇:
    {% if next %}
      &lt;a href=“{{next.Link}}”&gt;{{next.Title}}&lt;/a&gt;
    {% else %}
      没有了
    {% endif %}
    {% endnextArchive %}
    


    显示图片

    {$27}{% nextArchive next %} 上一篇: {% if next %} &lt;a href=“{{next.Link}}”&gt;

    &lt;img src="{{next.Thumb}}" /&gt;
    &lt;span&gt;{{next.Title}}&lt;/span&gt;
    

    &lt;/a&gt; {% else %} 没有了 {% endif %} {% endnextArchive %}