pagenext| tabs
Label name: Pagenext
Function Description: To get the document "previous/Next" link list
Scope of application: content template article_*.htm only
Basic syntax:
{dede:prenext/}
Related functions:
File \include\arc.archives.class.php Line No. 634
Get previous article, Next link
function Getprenext ($gtype = ')
Parameter description:
Get Gets the connection type (after 5.x), get= ' ' V4 the upper and lower pages of the display horizontal, get= ' pre ' previous connection get= ' next ' next connection
Note: This tag defaults to horizontal arrangement, if you want to use vertical alignment, you can use
{Dede:prenext function= "str_replace (' &http://www.aliyun.com/zixun/aggregation/37954.html" >nbsp; Next: ' < '. Br '. '/> Next: ', @me] '/}
Said
Usages:
Used to display the previous page of a content page, related documents for the next page
We can see the relevant code in the Content page template page, and here take the article content page template \templets\default\article_article.htm As an example, we look at 164 lines of related code
<div class= "Context" >
<ul>
<li>{dede:prenext get= ' pre '/}</li>
<li>{dede:prenext get= ' Next '/}</li>
</ul>
</div><!--/context-->
Of course, we can also use the custom function to deal with this tag, in line with the production of site templates.