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.
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Atom editor mac version download
The most popular open source editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Dreamweaver Mac version
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)
