Next Document Tag

Description: Used to get the next document data

Usage:{% nextArchive 变量名称 %}If the variable is defined as next{% nextArchive next %}...{% endnextArchive %}

nextArchive does not support parameters.

nextArchive supports the following fields:

  • Document IDId
  • Document titleTitle
  • Document linkLink
  • Document keywordKeywords
  • Document descriptionDescription
  • Document Category IDCategoryId
  • Document ViewsViews
  • Document cover first imageLogo
  • Document cover thumbnailThumb
  • Document comment countCommentCount
  • Document add timeCreatedTime
  • Document Update TimeUpdatedTime

Code example

{% nextArchive next %}
下一篇:
{% if next %}
  <a href="{{next.Link}}">{{next.Title}}</a>
{% else %}
  没有了
{% endif %}
{% endnextArchive %}

Display image

{% nextArchive next %}
上一篇:
{% if next %}
  <a href="{{next.Link}}">
    <img src="{{next.Thumb}}" />
    <span>{{next.Title}}</span>
  </a>
{% else %}
  没有了
{% endif %}
{% endnextArchive %}