Home >CMS Tutorial >PHPCMS >How to adjust secondary navigation in phpcms

How to adjust secondary navigation in phpcms

藏色散人
藏色散人Original
2020-01-08 09:58:111914browse

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>

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!

Statement:
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
Previous article:What is phpcms siteid?Next article:What is phpcms siteid?