织梦dede怎么修改关键字长度?
在网站的制作中,很多时候dede默认的一些设置可能无法达到我们要求,就如dede关键字长度一样,无法达到我们的要求,如果想修改到我们所需要的长度的话,需要修改一些php文件及数据库
推荐学习:织梦cms
dede文件修改默认关键字长度
第1步:找到并打开dede后台目录下的article_edit.php和article_add.php文件。
电脑维修技术网注:如果是修改专题认关键字的话,需要修改spec_add.php和spec_edit.php文件。
第2步:在文件中搜索"keywords",找到“$keywords = trim(cn_substrR($keywords, 60));”这行代码,修改为$keywords = $keywords;并保存。
数据库关键字默认长度修改
默认dede的keywords关键字数据库类型为char长度也只有20,所以我们需要把这个数据库字段类型改成varchar长度也改成200.
第1步:成功登录到dede后台,或是使用工具软件什么的连接到mysql数据库。
第2步:找到dede数据库,执行以下代码。
代码如下:
ALTER TABLE dede_archives MODIFY COLUMN keywords VARCHAR(200); 以上SQL语句说明,dede_archives为dede表名。keywords为需要修改的字段名。 ALTER TABLE 表名 MODIFY COLUMN 字段名 数据类型;
The above is the detailed content of How to modify the keyword length in Dede. 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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

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

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Notepad++7.3.1
Easy-to-use and free code editor

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.