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.

The fields supported by nextArchive are:

  • Document IDId
  • Document TitleTitle
  • Document LinkLink
  • Document KeywordsKeywords
  • Document DescriptionDescription
  • Document Category IDCategoryId
  • Document ViewsViews
  • Document Cover First ImageLogo
  • Document cover thumbnailThumb
  • Document comment countCommentCount
  • Document added 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 %}