ecshop calls the article to display the previous article and the next article_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:07:56
Original
1792 people have browsed it

First call the previous and next articles in the article. The syntax is:

tr>
The code is as follows Copy code
 代码如下 复制代码


上一篇:{$next_article.title}

下一篇:{$prev_article.title}

Previous article: {$next_article.title}

Next article: {$prev_article.title}

 代码如下 复制代码

 

上一篇:{$prev_article.title}

www.111cn.net

 

上一篇:没有了...

  

           

 

下一篇:{$next_article.title}

 

下一篇:没有了...

If you want to realize that when it is the first article or the last article, the previous article and the next article are not available, just use "No more..." You can use an if statement to control , the expression is written as follows:

The code is as follows Copy code

Previous article:{$prev_article.title}

www.111cn.net

Previous article: No more...

                                                             ;a href="{$next_article.url}">{$next_article.title}

Next article: No more...

Articles you may be interested in Tutorial on displaying thumbnails for order items in the ecshop user center
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template