search
HomeCMS TutorialDEDECMSThe method of restricting bytes in the column highlighting special style in Dreamweaver CMS

Currently, currentstyle in the Dream Weaver template only supports dede:channel, which can only call one level of columns. When we build a website, we often need to call the first and second level columns in the navigation bar, and then make the current column higher Bright, use special style, use dede:channelartlist.

The method of restricting bytes in the column highlighting special style in Dreamweaver CMS

The current style of DreamWeaver cannot be used in dede:channelartlist. We need to add some code ourselves.

1. Find the file “/include/taglib/channelartlist.lib.php”; This line of code "$pv->Fields['typeurl'] = GetOneTypeUrlA($typeids[$i]);" 3. Copy the following code after this line of code:

if($typeids[$i]['id'] == $refObj->TypeLink->TypeInfos['id'] || $typeids[$i]['id'] == $refObj->TypeLink->TypeInfos['topid'] ){    $pv->Fields['currentstyle'] = $currentstyle ? $currentstyle : ' class="on"';}    else{    $pv->Fields['currentstyle'] = '';}

4. Calling method:

{dede:channelartlist typeid=&#39;top&#39;}<li{dede:field.currentstyle/}><a href="{dede:field name=&#39;typeurl&#39;/}">{dede:field name=&#39;typename&#39;/}</a></li>{/dede:channelartlist}

This way you can use currentstyle in the dede:channelartlist tag that calls all columns.

Among them: 3. The class="on" inside is the style added to the current column. You can modify on to what you want.

The above is the detailed content of The method of restricting bytes in the column highlighting special style in Dreamweaver CMS. 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忘记密码怎么办Mar 08, 2023 am 09:39 AM

织梦cms忘记密码的解决办法:1、登录MySql,找到网站对应的数据库的名称,点击进入该数据库;2、找到dede_admin表,然后找到管理员相关信息行并选中;3、通过还原的方式将密码还原为初始值,将pwd的值修改为默认的“f297a57a5a743894a0e4”即可。

织梦cms系统有收费的吗织梦cms系统有收费的吗Aug 11, 2023 pm 01:57 PM

织梦cms系统没有收费。织梦CMS是一款开源的内容管理系统,其核心代码是免费提供的,用户可以免费下载最新版本的织梦CMS,并且还可以获取相关的技术支持和文档。但在使用过程中,用户可能需要购买额外的功能模块或者主题模板,这些是收费的,购买这些收费的模块和模板,价格根据具体的功能和设计复杂度而定。

织梦cms安全性怎么样织梦cms安全性怎么样Jul 27, 2023 pm 05:32 PM

织梦cms安全性相对比较好,其原因有:1、漏洞修复速度快;2、CSRF(跨站点请求伪造)保护;3、XSS(跨站脚本攻击)保护;4、SQL注入保护;5、代码审计。

织梦cms是什么语言写的织梦cms是什么语言写的Feb 21, 2023 am 09:45 AM

织梦cms是用PHP语言写的。织梦CMS(DedeCMS)是一个PHP开源网站管理系统,作用是构建中小型网站;它采用PHP+MySQL技术开发,可同时使用于windows、linux、unix平台。

织梦cms连接数据库失败怎么办织梦cms连接数据库失败怎么办Jul 20, 2023 pm 02:22 PM

织梦cms连接数据库失败解决方法:1、检查数据库配置,确保在织梦CMS的根目录下的 /data/config.php 文件中正确设置了数据库的相关信息;2、测试数据库连接,通过创建一个简单的PHP脚本来测试数据库连接是否成功;3、检查数据库服务器状态,在织梦CMS的根目录下的 /data/config.php 文件中更换数据库服务器地址;4、检查网络连接。

织梦cms数据库名称怎么修改织梦cms数据库名称怎么修改Feb 28, 2023 am 09:39 AM

织梦cms数据库名称的修改方法:1、直接修改mysql里的数据库名称;2、打开根目录下的“data”文件夹,然后找到“common.inc.php”文件;3、修改其中“$cfg_dbname”后面的数据即可。

织梦cms主要是做什么的织梦cms主要是做什么的Aug 08, 2023 pm 03:24 PM

织梦cms主要是做网站的建设、管理和维护。1、网站建设,织梦CMS提供了丰富的模板和插件资源,用户可以根据自己的需求选择合适的模板和插件,快速搭建自己的网站;2、网站管理,织梦CMS提供了简单易用的管理后台界面,用户可以通过浏览器登录后台进行网站管理;3、网站维护,织梦CMS提供了自动备份和数据库管理等功能,保证网站的安全和稳定运行。

织梦cms备案号位置怎么更改织梦cms备案号位置怎么更改Feb 27, 2023 am 09:46 AM

织梦cms备案号位置的更改方法:1、进入织梦后台,然后找到“模板”分类;2、点击“默认模板管理”;3、找到“footer.htm”,并点击修改;4、找到“{dede:global.cfg_powerby/}”,然后填写备案号即可。

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 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment