Home > CMS Tutorial > PHPCMS > body text

How to set up navigation in phpcms

藏色散人
Release: 2020-07-14 10:17:38
Original
2164 people have browsed it

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}
Copy after login

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!

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!