Home > CMS Tutorial > PHPCMS > body text

How to adjust secondary navigation in phpcms

藏色散人
Release: 2020-01-08 09:58:11
Original
1843 people have browsed it

How to adjust secondary navigation in phpcms

How to adjust the secondary navigation in phpcms?

phpcms v9 navigation bar calling secondary column example tutorial

<div>
  <ul>
    <li><a href="{siteurl($siteid)}">首页</a></li>
    {pc:content action="category" catid="0" num="10" siteid="$siteid" order="listorder ASC"}
    {loop $data $r}
    <li><a href="{$r[url]}">{$r[catname]}</a>
      {if $r[arrchildid]}
      <ul>
        {pc:content action="category" catid="$r[catid]" num="10" siteid="$siteid" order="listorder ASC" return="data2"}
        {loop $data2 $v}
        <li><a href="{$v[url]}">{$v[catname]}</a></li>
        {/loop}
        {/pc}
      </ul>
      {/if}
    </li>
    {/loop}
    {/pc}
  </ul>
</div>
Copy after login

PHP Chinese website, a large number of free PHPCMS tutorials, welcome to learn online!

The above is the detailed content of How to adjust secondary navigation in phpcms. 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!