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 ID
Id
- Document Title
Title
- Document Link
Link
- Document Keywords
Keywords
- Document Description
Description
- Document Category ID
CategoryId
- Document Views
Views
- Document Cover First Image
Logo
- Document cover thumbnail
Thumb
- Document comment count
CommentCount
- Document added time
CreatedTime
- Document update time
UpdatedTime
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 %}