废话不多说了,直接给大家贴代码了,具体代码如下所示:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<div class = "moocConDetail" >
{pc:content action= "lists" catid= "11" order= "id DESC" num= "10" moreinfo= "1" }
<ul>
{loop $data $key $val }
{php list( $copyfrom ) = explode ( '|' , $val [ 'copyfrom' ])}
<li>
<a href= "{$val['url']}" rel= "external nofollow" >{ $val [ 'title' ]}</a>
<span class = "source" >{ $copyfrom }</span>
<span class = "acTime" >{ date ( 'Y-m-d' , $val [inputtime])}</span>
</li>
{/loop}
</ul>
{/pc}
</div>
|
调用一级栏目名称跟二级栏目名称:
1
2
|
{ $CATEGORYS [ $CAT [parentid]][catname]}
{ $CATEGORYS [ $CAT [catid]][catname]}
|
以上所述是小编给大家介绍的phpcms配置列表页以及获得文章发布时间,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对服务器之家网站的支持!
原文链接:http://www.cnblogs.com/moqiutao/archive/2017/07/04/7116708.html