search
HomeCMS TutorialEmpire CMSHow to add nofollow to empire cms navigation

How to add nofollow to empire cms navigation

If you want to know more about Empire cms, you can click: Empire cms tutorial

In the process of building our website and doing SEO, we do not need some insignificant columns (navigation), such as columns about us, contact information, etc., to participate in the ranking (because it is just a single page and will never be included in the ranking). Pages that will update content), so we will add nofollow to such pages to ensure that the weight of our homepage is not dispersed! However, the columns of Dreamweaver CMS are generally called uniformly. The original calling code is as follows. Many people will not add nofollow to a single column.

If you directly use the default navigation of the empire to modify it, It will be more complicated. My general method of operation is to change the navigation bar to a line of code written by hand, which means that the navigation bar is written by me. In this case, it will be easier for me to modify it. Generally speaking, our The navigation bar is fixed, so it’s okay not to write it.

Sample code

   <li id="nvabar-item-index" class="<?=$homestyle?>"><a href="[!--news.url--]">首页</a></li>
      <?php
$sql=$empire->query("select classid,classname,islast from {$dbtbpre}enewsclass where bclassid=0 and showclass=0 order by myorder,myorder asc");
    while($s=$empire->fetch($sql)){
    	$tclass="";
        $fr=explode(&#39;|&#39;,$class_r[$GLOBALS[navclassid]][featherclass]);
        $topbclassid=$fr[1]?$fr[1]:$GLOBALS[navclassid];
        if(($topbclassid==$s[classid])&&($ishome==0)){
        	$tclass=&#39;active&#39;;
        }
        $classurl=sys_ReturnBqClassname($s,9);      
        echo &#39;<li id="navbar-category-&#39;.$s[classid].&#39;" class="submenu li-cate-&#39;.$s[classid].&#39; &#39;.$tclass.&#39;"><a href="&#39;.$classurl.&#39;">&#39;.$s[classname].&#39;</a>&#39;;
        if(!$s[islast]){
        	$sql2=$empire->query("select classid,classname from {$dbtbpre}enewsclass where bclassid=$s[classid] and showclass=0 order by myorder,myorder asc");
            $str="";
            while($s2=$empire->fetch($sql2)){
            	$classurl2=sys_ReturnBqClassname($s2,9);          
            	$str.=&#39;<li id="navbar-category-&#39;.$s[classid].&#39;" class="li-cate-&#39;.$s[classid].&#39;"><a href="&#39;.$classurl2.&#39;">&#39;.$s2[classname].&#39;</a></li>&#39;;
            }
            echo &#39;<ul class="sub-menu">&#39;.$str.&#39;</ul>&#39;;
        }
        echo &#39;</li>&#39;;
    }
?>
      </ul>

The above is the detailed content of How to add nofollow to empire cms navigation. 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
帝国cms管理员在哪个表帝国cms管理员在哪个表Feb 22, 2023 pm 07:00 PM

管理员表有:1、phome_enewsuser,是管理员记录表;2、phome_enewsdolog,是管理员操作记录表;3、phome_enewsgroup,是管理员用户组数据记录表;4、phome_enewslog,是管理员登陆日志;5、phome_enewsloginfail,是管理员登陆失败记录表;6、phome_enewserrorclass,是管理员错误报告记录表。

帝国cms怎么把静态改成伪静态帝国cms怎么把静态改成伪静态Jul 19, 2023 pm 04:45 PM

帝国cms把静态改成伪静态的方法:1、创建.htaccess文件;2、修改网站配置文件;3、重新生成所有页面;4、配置伪静态规则;5、保存并关闭文件即可。

帝国cms404页面怎么设置帝国cms404页面怎么设置Aug 02, 2023 am 11:54 AM

帝国cms404页面的设置步骤为:1、登录到帝国CMS的后台管理界面;2、导航到"内容"或"站点管理"等相关菜单选项;3、找到和选择"404页面"或"错误页面"选项;4、选择使用已有页面或者创建一个新页面作为404页面;5、在新页面编辑器中,编写404页面的内容;6、保存页面并将其设置为404页面;7、更新网站设置;8、保存设置并测试404页面即可。

帝国cms可以删除模块吗帝国cms可以删除模块吗Mar 13, 2023 pm 07:18 PM

帝国cms可以删除模块。删除模块的方法:1、登录帝国CMS后台,依次点击“系统”-“系统设置”-“系统参数设置”-“关闭相关功能”,根据自己网站的需求,自行勾选设置来关闭对应的模块功能;2、关闭功能后,删除对应模块的在e目录下的子目录;3、修改e目录下的php文件,在文件第二行加上代码“exit();<?php exit()”,并保存修改即可。

帝国cms留言板是哪个表帝国cms留言板是哪个表Feb 22, 2023 am 09:39 AM

帝国cms留言板是“​phome_enewsgbook”表;帝国cms留言分类表是“phome_enewsgbookclass”;帝国cms会员空间留言表是“phome_enewsmembergbook”。

帝国cms连接不上数据库怎么办帝国cms连接不上数据库怎么办Feb 27, 2023 am 09:51 AM

帝国cms连接不上数据库的解决办法:1、打开帝国CMS数据文件的根目录;2、找到并打开“/e/config/config.php”文件;3、将数据库名称以及数据库用户名即数据库密码修改保存后替换空间文件即可。

帝国cms封面模板是什么意思帝国cms封面模板是什么意思Feb 13, 2023 am 10:39 AM

在帝国cms中,封面模板是指网站频道页面使用的模板,可以制作跟首页一模一样的封面页面;封面模板共使用在两个地方:非终极栏目和专题。封面模板的使用,一般是该栏目为父级栏目(非终级栏目),封面模板的目的就是调用各个子栏目(终级栏目)文章。

帝国cms怎么修改数据库文件帝国cms怎么修改数据库文件Jul 25, 2023 pm 03:37 PM

帝国cms修改数据库文件的方法:1、打开控制面板,找到phpMyAdmin或类似的数据库管理工具;2、选择您要修改的数据库;3、点击您要修改的表格;4、点击您要修改的字段;5、根据需求,修改相应的属性和值;6、保存您所做的修改;7、重复步骤三至六,对其他字段进行相应的修改即可。

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

DVWA

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