Home  >  Article  >  CMS Tutorial  >  How to set up navigation in phpcms

How to set up navigation in phpcms

藏色散人
藏色散人Original
2020-07-14 10:17:382144browse

How to set navigation in phpcms: first find and open the "content\header.html" file; then replace the "{$r[url]}" in the li tag with the required link address; finally replace the " {$r[catname]}" can be replaced with the name on the navigation.

How to set up navigation in phpcms

PHPCMS navigation bar modification

There are two ways to achieve your needs:

1. It is more convenient. In the background column management, change the name and address of the default forum to the name and address you want to add.

2. Modify the code and manually fill in the navigation code. The file path is: \phpcms\templates\default\content\header.html

The specific location is:

{pc:content action="category" catid="0" num="25" siteid="$siteid" order="listorder ASC"}
            <ul class="nav-site">
            <li><a href="{siteurl($siteid)}"><span>首页</span></a></li>
            {loop $data $r}
            <li class="line">|</li>
            <li><a href="{$r[url]}"><span>{$r[catname]}</span></a></li>
            {/loop}
            </ul>
        {/pc}

You You can replace {$r[url]} in the li tag with the address you want to link to, and {$r[catname]} with the name on the navigation.

PHPCMS software adopts modular development and supports multiple classification methods. It can be used to facilitate the design, development and maintenance of personalized websites. It supports many program combinations, can easily realize website platform migration, and can widely meet the needs of websites of various sizes. It has high reliability. It is a software with articles, downloads, pictures, classified information, movies, shopping malls, collection, finance, etc. Excellent website management software that is powerful, easy to use, and scalable with many functions.

Recommended: "phpcms tutorial"

The above is the detailed content of How to set up 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