destoon调用自定义模板及样式的公告栏_PHP教程

WBOY
Release: 2016-07-13 10:24:24
Original
1173 people have browsed it

destoon中默认的首页公告栏调用方法如下:

复制代码 代码如下:
$today_endtime-86400&areaid=$cityid&pagesize=3&datetype=2&order=listorder desc,addtime desc&target=_blank”)}–>

这个标签引用的模板文件是template/default/tag/list.htm文件。

当我们不想用这个list.htm文件,而想要用到自己写的样式和模板,就可以复制一份这个文件,把文件名改为例如 list-new.htm.

样式和标签可以自己参考list.htm调用规则加以改动。

这时在首页我们就可以如下调用方法:

复制代码 代码如下:
$today_endtime-86400&length=30&areaid=$cityid&pagesize=3&datetype=2&order=listorder desc,addtime desc&target=_blank&template=list-new”)}–>

即:在原调用的基础上写上自己的模板文件。

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/825466.htmlTechArticledestoon中默认的首页公告栏调用方法如下: 复制代码 代码如下: !–{tag(“table=announcegt;$today_endtime-86400pagesize=3order=listorder desc,addtime descgt; 这...
Related labels:
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!