Description: Used to obtain data from the previous document
How to use:{% prevArchive 变量名称 %}
If you define a variable as prev{% prevArchive prev %}...{% endprevArchive %}
prevArchive does not support parameters.
The fields supported by prevArchive are:
- Document ID
Id
- Document title
Title
- Document link
Link
- Document keywords
Keywords
- Document description
Description
- Document Classification ID
CategoryId
- Document view count
Views
- First image of the document cover
Logo
- Document cover thumbnail
Thumb
- Number of document comments
CommentCount
- Document addition time
CreatedTime
- Document update time
UpdatedTime
Code Example
{% prevArchive prev %}
上一篇:
{% if prev %}
<a href="{{prev.Link}}">{{prev.Title}}</a>
{% else %}
没有了
{% endif %}
{% endprevArchive %}
Show pictures
{% prevArchive prev %}
上一篇:
{% if prev %}
<a href="{{prev.Link}}">
<img src="{{prev.Thumb}}" />
<span>{{prev.Title}}</span>
</a>
{% else %}
没有了
{% endif %}
{% endprevArchive %}