{pc:content action="lists" catid="11" order="id DESC" num="10" moreinfo="1"}
Home > Article > Backend Development > Introduction to phpcms configuration list page and acquisition time examples
phpcms configures the list page and obtains the article publishing time. Without further ado, I will post the code directly for everyone. The specific code is as follows:
<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>
Call the first-level column name Follow the name of the secondary column:
{$CATEGORYS[$CAT[parentid]][catname]} {$CATEGORYS[$CAT[catid]][catname]}
The above is the phpcms configuration list page introduced by the editor and the article publishing time. I hope it will be helpful to everyone.
The above is the detailed content of Introduction to phpcms configuration list page and acquisition time examples. For more information, please follow other related articles on the PHP Chinese website!