ecshop调用文章显示上一篇下一篇_html/css_WEB-ITnose

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

首先调用文章中的上一篇和下一篇语法为:

 代码如下 复制代码


上一篇:{$next_article.title}

下一篇:{$prev_article.title}


如果要实现当在第一篇文章或最后一篇文章时候,上一篇下一篇没有就用“没有了...”可以用一个if语句控制,表示的写法如下:

 代码如下 复制代码

 

上一篇:{$prev_article.title}

www.111cn.net

 

上一篇:没有了...

  

           

 

下一篇:{$next_article.title}

 

下一篇:没有了...

你可能感兴趣的文章

ecshop用户中心订单商品显示缩略图的教程
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!