Next document tags

Description: Used to obtain the next document data

How to use:{% 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 view countViews
  • First image of the document coverLogo
  • Document cover thumbnailThumb
  • Number of document commentsCommentCount
  • Document addition timeCreatedTime
  • Document update timeUpdatedTime

Code Example

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

Show pictures

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