Introduction to phpcms configuration list page and acquisition time examples

零下一度
Release: 2023-03-12 16:38:02
Original
1605 people have browsed it

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(&#39;|&#39;, $val[&#39;copyfrom&#39;])}
    <li>
     <a href="{$val[&#39;url&#39;]}" rel="external nofollow" >{$val[&#39;title&#39;]}</a>
     <span class="source">{$copyfrom}</span>
     <span class="acTime">{date(&#39;Y-m-d&#39;,$val[inputtime])}</span>
    </li>
    {/loop}
    </ul>
    {/pc}
  </div>
Copy after login

Call the first-level column name Follow the name of the secondary column:

{$CATEGORYS[$CAT[parentid]][catname]}
{$CATEGORYS[$CAT[catid]][catname]}
Copy after login

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!

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!