- Many of the site's navigation bar can implement the drop-down level two menu, level three menu and other effects, today we will share Phpcms v9 Support dropdown menu method, can support unlimited sub-column calls, the specific wording is as follows:
- <ul>
- {pc:content action="category" catid="0" num="siteid=" $siteid " order= "Listorder ASC"}
- {Loop $data $c}
- <li><a href="{$c [' url ']}">{$c [' CatName ']}</a>
- <ul>
- {loop subcat ($c [' catid ']) $c 2}
- <li><a href="{$c 2[' url ']}">{$c 2[' catname ']}</a>
- <ul>
- {loop subcat ($c 2[' catid ') $c 3}
- <li><a href="{$c 2[' url ']}">{$c 3[' catname ']}</a> </li>
- {/loop}
- </ul>
- </li>
- {/loop}
- </ul>
- </li>
- {/loop}
- {/PC}
- </ul>
- Similarly, can draw an infinite loop sub-column, Luzhou website Construction Tang Network interconnection sharing, hope to everyone helpful.
Phpcms v9 drop-down menu two level three sub-column call method