# 织梦核心改动
- 忘记密码
织梦忘记密码 表\_admin 密码c3949ba59abbe56e057f对应123456
- 常见路径
```
<pre class="calibre14">```
面包屑修改文件位置`include<span class="token">/</span>typelink<span class="token2">.</span>class<span class="token2">.</span>php`
list分页文件 `include<span class="token">/</span>arc<span class="token2">.</span>listview<span class="token2">.</span>class<span class="token2">.</span>php`
搜索页分页` include<span class="token">/</span>arc<span class="token2">.</span>searchview<span class="token2">.</span>class<span class="token2">.</span>php`
后台模块管理空白<span class="token2">,</span>删除`data<span class="token">/</span>module<span class="token">/</span>moduleurllist<span class="token2">.</span>txt`文件让其重新生成<span class="token2">,</span>空白的文件
```
```
- 自定义模型无法移动
```
<pre class="calibre14">```
dede<span class="token">/</span>archives_do<span class="token2">.</span>php文件
$typeOptions <span class="token">=</span> $tl<span class="token">-</span><span class="token">></span><span class="token1">GetOptionArray</span><span class="token2">(</span><span class="token3">0</span><span class="token2">,</span> $admin_catalogs<span class="token2">,</span> <span class="token3">0</span><span class="token2">)</span><span class="token2">;</span> 最后一个改为<span class="token3">0</span>
```
```
- 表说明
栏目表 arctype
图集表 addonimages
文章表 archives
文章附加表 addonarticle
自定义表单表 diyforms
文章模型表单 channeltype
- channel支持autoindex
```
<pre class="calibre14">```
include<span class="token">/</span>taglib<span class="token">/</span>channel<span class="token2">.</span>lib<span class="token2">.</span>php <span class="token3">140</span>行加入 调用 <span class="token">~</span>autoindex<span class="token">~</span>
$linkOkstr <span class="token">=</span> <span class="token1">str_replace</span><span class="token2">(</span><span class="token4">"~autoindex~"</span><span class="token2">,</span>$GLOBALS<span class="token2">[</span><span class="token4">'autoindex'</span><span class="token2">]</span><span class="token">+</span><span class="token3">1</span><span class="token2">,</span>$linkOkstr<span class="token2">)</span><span class="token2">;</span>
支持 entypename id typelink typename autoindex rel
```
```
- 搜索表单
```
<pre class="calibre14">```
<span class="token"><</span>form name<span class="token">=</span><span class="token4">"formsearch"</span> action<span class="token">=</span><span class="token4">"/plus/search.php"</span><span class="token">></span><span class="token"><</span>input name<span class="token">=</span><span class="token4">"q"</span> type<span class="token">=</span><span class="token4">"text"</span> class<span class="token">=</span><span class="token4">"s1"</span> id<span class="token">=</span><span class="token4">"search"</span> value<span class="token">=</span><span class="token4">"在这里搜索..."</span> onfocus<span class="token">=</span><span class="token4">"if(this.value=='在这里搜索...'){this.value='';}"</span> onblur<span class="token">=</span><span class="token4">"if(this.value==''){this.value='在这里搜索...';}"</span> <span class="token">/</span><span class="token">></span>
<span class="token"><</span>button type<span class="token">=</span><span class="token4">"submit"</span> class<span class="token">=</span><span class="token4">"s2"</span> onmouseover<span class="token">=</span><span class="token4">"this.style.cursor='pointer'"</span><span class="token">></span>搜索<span class="token"><</span><span class="token">/</span>button<span class="token">></span>
<span class="token"><</span><span class="token">/</span>form<span class="token">></span>
```
```
- 搜索页支持栏目
```
<pre class="calibre14">```
文件include<span class="token">/</span>arc<span class="token2">.</span>searchview<span class="token2">.</span>class<span class="token2">.</span>php
<span class="token1">require_once</span><span class="token2">(</span>DEDEINC<span class="token2">.</span><span class="token4">"/taglib/channelartlist.lib.php"</span><span class="token2">)</span><span class="token2">;</span>
<span class="token1">require_once</span><span class="token2">(</span>DEDEINC<span class="token2">.</span><span class="token4">"/taglib/type.lib.php"</span><span class="token2">)</span><span class="token2">;</span>
<span class="token5">else</span> <span class="token5">if</span><span class="token2">(</span>$tagname<span class="token">==</span><span class="token4">"channelartlist"</span><span class="token2">)</span>
<span class="token2">{</span>
$this<span class="token">-</span><span class="token">></span>dtp<span class="token">-</span><span class="token">></span><span class="token1">Assign</span><span class="token2">(</span>$tagid<span class="token2">,</span><span class="token1">lib_channelartlist</span><span class="token2">(</span>$ctag<span class="token2">,</span>$this<span class="token2">)</span><span class="token2">)</span><span class="token2">;</span>
<span class="token2">}</span><span class="token5">else</span> <span class="token5">if</span><span class="token2">(</span>$tagname<span class="token">==</span><span class="token4">"type"</span><span class="token2">)</span>
<span class="token2">{</span>
$this<span class="token">-</span><span class="token">></span>dtp<span class="token">-</span><span class="token">></span><span class="token1">Assign</span><span class="token2">(</span>$tagid<span class="token2">,</span><span class="token1">lib_type</span><span class="token2">(</span>$ctag<span class="token2">,</span>$this<span class="token2">)</span><span class="token2">)</span><span class="token2">;</span>
<span class="token2">}</span>
```
```
- 子栏目调用,没有时候不显示同级栏目,include\\taglib\\channel.lib.php,改成如下
```
<pre class="calibre14">```
<span class="token5">if</span><span class="token2">(</span>$type<span class="token">==</span><span class="token4">'son'</span> <span class="token">&&</span> $reid<span class="token">!=</span><span class="token3">0</span> <span class="token">&&</span> $totalRow<span class="token">==</span><span class="token3">0</span> <span class="token">&&</span> $noself<span class="token">==</span><span class="token4">''</span><span class="token2">)</span>
<span class="token2">{</span>dede<span class="token2">:</span>channel type<span class="token">=</span><span class="token4">'son'</span> noself<span class="token">=</span><span class="token4">'yes'</span> <span class="token2">}</span>
<span class="token"><</span>a href<span class="token">=</span><span class="token4">"[field:typeurl/]"</span><span class="token">></span><span class="token2">[</span>field<span class="token2">:</span>typename<span class="token">/</span><span class="token2">]</span><span class="token"><</span><span class="token">/</span>a<span class="token">></span>
<span class="token2">{</span><span class="token">/</span>dede<span class="token2">:</span>channel<span class="token2">}</span>
```
```
- 百度编辑器div标签自动替换成了P标签的解决方法:
```
<pre class="calibre14">```
在ueditor<span class="token2">.</span>config<span class="token2">.</span>js里加入这一行:
allowDivTransToP<span class="token2">:</span><span class="token3">false</span>
去掉li里面加p
搜索 进入编辑器的li要套p标签 去掉第一个each
```
```
- 手机端不生成index.html \\m\\index.php
```
<pre class="calibre14">```
$row<span class="token2">[</span><span class="token4">'showmod'</span><span class="token2">]</span> <span class="token">=</span> <span class="token1">isset</span><span class="token2">(</span>$row<span class="token2">[</span><span class="token4">'showmod'</span><span class="token2">]</span><span class="token2">)</span><span class="token">?</span> $row<span class="token2">[</span><span class="token4">'showmod'</span><span class="token2">]</span> <span class="token2">:</span> <span class="token3">0</span><span class="token2">;</span>
<span class="token5">if</span> <span class="token2">(</span>$row<span class="token2">[</span><span class="token4">'showmod'</span><span class="token2">]</span> <span class="token">==</span> <span class="token3">1</span><span class="token2">)</span>
<span class="token2">{</span>
$pv<span class="token">-</span><span class="token">></span><span class="token1">SaveToHtml</span><span class="token2">(</span><span class="token1">dirname</span><span class="token2">(</span>__FILE__<span class="token2">)</span><span class="token2">.</span><span class="token4">'/index.html'</span><span class="token2">)</span><span class="token2">;</span>
<span class="token1">include</span><span class="token2">(</span><span class="token1">dirname</span><span class="token2">(</span>__FILE__<span class="token2">)</span><span class="token2">.</span><span class="token4">'/../index.html'</span><span class="token2">)</span><span class="token2">;</span>
<span class="token1">exit</span><span class="token2">(</span><span class="token2">)</span><span class="token2">;</span>
<span class="token2">}</span> <span class="token5">else</span> <span class="token2">{</span>
$pv<span class="token">-</span><span class="token">></span><span class="token1">Display</span><span class="token2">(</span><span class="token2">)</span><span class="token2">;</span>
<span class="token1">exit</span><span class="token2">(</span><span class="token2">)</span><span class="token2">;</span>
<span class="token2">}</span>
改成
$pv<span class="token">-</span><span class="token">></span><span class="token1">SetTemplet</span><span class="token2">(</span>$cfg_basedir <span class="token2">.</span> $cfg_templets_dir <span class="token2">.</span> <span class="token4">"/"</span> <span class="token2">.</span> $row<span class="token2">[</span><span class="token4">'templet'</span><span class="token2">]</span><span class="token2">)</span><span class="token2">;</span>
$pv<span class="token">-</span><span class="token">></span><span class="token1">Display</span><span class="token2">(</span><span class="token2">)</span><span class="token2">;</span>
<span class="token1">exit</span><span class="token2">(</span><span class="token2">)</span><span class="token2">;</span>
```
```
- 手机端实现 上一篇下一篇
include/arc.archives.class.php 新增移动端判断
```
<pre class="calibre14">```
<span class="token5">if</span> <span class="token2">(</span> <span class="token1">defined</span><span class="token2">(</span><span class="token4">'DEDEMOB'</span><span class="token2">)</span> <span class="token2">)</span>
<span class="token2">{</span>
$mlink <span class="token">=</span> <span class="token4">'view.php?aid='</span><span class="token2">.</span>$preRow<span class="token2">[</span><span class="token4">'id'</span><span class="token2">]</span><span class="token2">;</span>
<span class="token2">}</span> <span class="token5">else</span> <span class="token2">{</span>
$mlink <span class="token">=</span> <span class="token1">GetFileUrl</span><span class="token2">(</span>$preRow<span class="token2">[</span><span class="token4">'id'</span><span class="token2">]</span><span class="token2">,</span>$preRow<span class="token2">[</span><span class="token4">'typeid'</span><span class="token2">]</span><span class="token2">,</span>$preRow<span class="token2">[</span><span class="token4">'senddate'</span><span class="token2">]</span><span class="token2">,</span>$preRow<span class="token2">[</span><span class="token4">'title'</span><span class="token2">]</span><span class="token2">,</span>$preRow<span class="token2">[</span><span class="token4">'ismake'</span><span class="token2">]</span><span class="token2">,</span>$preRow<span class="token2">[</span><span class="token4">'arcrank'</span><span class="token2">]</span><span class="token2">,</span>$preRow<span class="token2">[</span><span class="token4">'namerule'</span><span class="token2">]</span><span class="token2">,</span>$preRow<span class="token2">[</span><span class="token4">'typedir'</span><span class="token2">]</span><span class="token2">,</span>$preRow<span class="token2">[</span><span class="token4">'money'</span><span class="token2">]</span><span class="token2">,</span>$preRow<span class="token2">[</span><span class="token4">'filename'</span><span class="token2">]</span><span class="token2">,</span>$preRow<span class="token2">[</span><span class="token4">'moresite'</span><span class="token2">]</span><span class="token2">,</span>$preRow<span class="token2">[</span><span class="token4">'siteurl'</span><span class="token2">]</span><span class="token2">,</span>$preRow<span class="token2">[</span><span class="token4">'sitepath'</span><span class="token2">]</span><span class="token2">)</span><span class="token2">;</span>
<span class="token2">}</span>
<span class="token5">if</span> <span class="token2">(</span> <span class="token1">defined</span><span class="token2">(</span><span class="token4">'DEDEMOB'</span><span class="token2">)</span> <span class="token2">)</span>
<span class="token2">{</span>
$mlink <span class="token">=</span> <span class="token4">'view.php?aid='</span><span class="token2">.</span>$nextRow<span class="token2">[</span><span class="token4">'id'</span><span class="token2">]</span><span class="token2">;</span>
<span class="token2">}</span> <span class="token5">else</span> <span class="token2">{</span>
$mlink <span class="token">=</span> <span class="token1">GetFileUrl</span><span class="token2">(</span>$nextRow<span class="token2">[</span><span class="token4">'id'</span><span class="token2">]</span><span class="token2">,</span>$nextRow<span class="token2">[</span><span class="token4">'typeid'</span><span class="token2">]</span><span class="token2">,</span>$nextRow<span class="token2">[</span><span class="token4">'senddate'</span><span class="token2">]</span><span class="token2">,</span>$nextRow<span class="token2">[</span><span class="token4">'title'</span><span class="token2">]</span><span class="token2">,</span>$nextRow<span class="token2">[</span><span class="token4">'ismake'</span><span class="token2">]</span><span class="token2">,</span>$nextRow<span class="token2">[</span><span class="token4">'arcrank'</span><span class="token2">]</span><span class="token2">,</span>$nextRow<span class="token2">[</span><span class="token4">'namerule'</span><span class="token2">]</span><span class="token2">,</span>$nextRow<span class="token2">[</span><span class="token4">'typedir'</span><span class="token2">]</span><span class="token2">,</span>$nextRow<span class="token2">[</span><span class="token4">'money'</span><span class="token2">]</span><span class="token2">,</span>$nextRow<span class="token2">[</span><span class="token4">'filename'</span><span class="token2">]</span><span class="token2">,</span>$nextRow<span class="token2">[</span><span class="token4">'moresite'</span><span class="token2">]</span><span class="token2">,</span>$nextRow<span class="token2">[</span><span class="token4">'siteurl'</span><span class="token2">]</span><span class="token2">,</span>$nextRow<span class="token2">[</span><span class="token4">'sitepath'</span><span class="token2">]</span><span class="token2">)</span><span class="token2">;</span>
<span class="token2">}</span>
```
```
- 修改文章后自动更新摘要描述
管理目录 article\_edit.php 113行
```
<pre class="calibre14">```
$description改成 <span class="token1">strip_tags</span><span class="token2">(</span>$body<span class="token2">)</span>
```
```
- 图集上传图片错误修改
```
<pre class="calibre14">```
include<span class="token">/</span>uploadsafe<span class="token2">.</span>inc<span class="token2">.</span>php 里的第<span class="token3">45</span>行的 imtypes 改成imgtypes
加个g
```
```
- 修改友情链接图片不能显示
```
<pre class="calibre14">```
include<span class="token">/</span>datalistcp<span class="token2">.</span>class<span class="token2">.</span>php <span class="token3">237</span>行
$replacement <span class="token">=</span><span class="token1">substr</span><span class="token2">(</span>$ra<span class="token2">[</span>$i<span class="token2">]</span><span class="token2">,</span> <span class="token3">0</span><span class="token2">,</span> <span class="token3">2</span><span class="token2">)</span><span class="token2">.</span><span class="token1">substr</span><span class="token2">(</span>$ra<span class="token2">[</span>$i<span class="token2">]</span><span class="token2">,</span> <span class="token3">2</span><span class="token2">)</span><span class="token2">;</span>
```
```
- 自定义表单编辑 显示空表单
```
<pre class="calibre14">```
在dede\templets\diy_edit_content<span class="token2">.</span>htm
注释掉 <span class="token5">if</span><span class="token2">(</span>$row<span class="token2">[</span>$field<span class="token2">]</span><span class="token">==</span><span class="token4">''</span><span class="token2">)</span> <span class="token5">continue</span><span class="token2">;</span>
```
```
- 对于单页管理不能使用编辑器
找到模板编器前面增加 `$GLOBALS['cfg_html_editor']='ckeditor';` 例如templets\_one\_add.htm templets\_one\_edit.html
- 简介
- 第一章 数据库
- Mysql/mariadb
- 函数
- 基础
- 增删改索引
- 标准查询
- 高级查询
- TIDB集群mysql解决方案
- Redis
- 语言基础
- 5种数据类型
- 其他类型
- Sqlite
- 语言基础
- 常用查询
- 第二章 PHP
- 语言基础
- 第一课 流程控制和运算
- 第二课 数组
- 第三课 日期时间
- 第四课 常用函数
- 第五课 字符串
- 第六课 文件操作
- 第七课 面向对象
- 第八课 正则表达式
- 第九课 图片处理生成
- 第十课 curl/memche
- 第十一课 mysql和pdo
- 第十三课 cookie和session
- 第十四课 xml操作
- 第十五课 php5.3+新特性
- 第十六课 php7+
- 第十七课 密码安全
- 废弃函数
- php命令行
- redis应用
- 算法
- 排序算法
- 基础算法
- 无限级分类
- 自定义函数Fn
- 查找算法
- 自定义函数数据函数fn
- laravel
- 路由
- 常用语句
- 数据库
- dingo/api
- Yii2
- 控制器
- 常用类
- 数据库
- redis
- thinkphp6
- TP6文档
- TP6插件
- dedecms
- 织梦标签大全
- 数据库操作
- 内置函数和定义函数
- 织梦核心改动
- 织梦插件/底层标签开发
- PHP相关工具
- composer
- php开发环境phpenv
- Phpstorm使用
- windows编译php扩展
- PHP开源库
- 开源项目管理禅道
- sns_auth
- php-casbin权限控制
- php-jwt
- 微信SDKeasywechat
- querylist采集库
- workerman
- Box/Spout处理excel和csv
- dll扩展
- redis/memche/xdebug
- redis
- Lua
- php_xlswriter
- event
- swoole
- 常用代码库
- 微擎框架
- 第一课全局变量
- 第二课常用函数
- 第三课自定义微擎独有函数
- 第四课数据库操作
- 第五课微信端回复
- 第六课微擎高级操作
- 第八课global函数列表
- mainfest.xml详解
- js方法
- 人人商城
- 第一课model解读
- 第二课常用语句解读
- 第三课常用js解读
- 第四课附录常见问题
- 第五课附录处理报表|支付
- 常用JSON状态码
- 第三章 JavaScript
- js基础
- 浏览器对象
- 语言基础
- html5接口
- ES6新语法
- vue
- 基础语法
- 京东vueUI组件
- uniapp
- 组件开发规范
- nodejs
- 基础知识
- 安装node
- nvm不同版本node切换
- js常用标准库
- zepto/jquery
- weui
- js图标库
- elementUI
- validator表单验证
- layer弹出层
- requirejs
- wow动画
- 动画animate
- swiper4
- 百度编辑器
- flyio/axios/qs
- jquery.form
- bootstrap3
- clipboard复制
- slideout侧滑
- imagehover.css图片悬停动画
- webpack打包
- Bulma UI框架
- store 客户端存储
- lottie动画创建库
- sweetalert
- js自定义函数
- 常见JSSDK
- 微信公众号JSSDK
- 腾讯地图jssdk
- 微信小程序
- 第四章 编程语言
- markdown语言
- Dart语言
- Dart语言基础
- Flutter框架
- Lua语言
- 字符串,数组,表
- 自定义方法
- go语言
- 第1.1语言基本语法
- 第1.2流程控制
- 第1.3函数
- 第1.4结构体
- 第1.5接口
- 第1.6包
- go语言框架Gin
- CSS3语言
- CSS与CSS3
- 选择符
- 属性
- css3
- loading动画
- HTML5语言
- less
- sass
- C#
- 基础知识
- 函数
- 第五章 开发工具
- git
- nginx/apache服务器
- Linux常用操作
- crontab定时任务
- 注册表与cmd
- 阿里云ECS
- frp穿透和ssl续期
- 宝塔安装
- 树莓派
- 浏览器模拟
- 火狐/chrome常用插件
- WSL安装使用
- mac brew和终端命令
- win10相关