企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
- 忘记密码 织梦忘记密码 表_admin 密码c3949ba59abbe56e057f对应123456 - 常见路径 ~~~ 面包屑修改文件位置`include/typelink.class.php` list分页文件 `include/arc.listview.class.php` 搜索页分页` include/arc.searchview.class.php` 后台模块管理空白,删除`data/module/moduleurllist.txt`文件让其重新生成,空白的文件 ~~~ - 自定义模型无法移动 ~~~ dede/archives_do.php文件 $typeOptions = $tl->GetOptionArray(0, $admin_catalogs, 0); 最后一个改为0 ~~~ - 表说明 栏目表 arctype 图集表 addonimages 文章表 archives 文章附加表 addonarticle 自定义表单表 diyforms 文章模型表单 channeltype - channel支持autoindex ~~~ include/taglib/channel.lib.php 140行加入 调用 ~autoindex~ $linkOkstr = str_replace("~autoindex~",$GLOBALS['autoindex']+1,$linkOkstr); 支持 entypename id typelink typename autoindex rel ~~~ - 搜索表单 ~~~ <form name="formsearch" action="/plus/search.php"><input name="q" type="text" class="s1" id="search" value="在这里搜索..." onfocus="if(this.value=='在这里搜索...'){this.value='';}" onblur="if(this.value==''){this.value='在这里搜索...';}" /> <button type="submit" class="s2" onmouseover="this.style.cursor='pointer'">搜索</button> </form> ~~~ - 搜索页支持栏目 ~~~ 文件include/arc.searchview.class.php require_once(DEDEINC."/taglib/channelartlist.lib.php"); require_once(DEDEINC."/taglib/type.lib.php"); else if($tagname=="channelartlist") { $this->dtp->Assign($tagid,lib_channelartlist($ctag,$this)); }else if($tagname=="type") { $this->dtp->Assign($tagid,lib_type($ctag,$this)); } ~~~ - 子栏目调用,没有时候不显示同级栏目,include\taglib\channel.lib.php,改成如下 ~~~ if($type=='son' && $reid!=0 && $totalRow==0 && $noself=='') {dede:channel type='son' noself='yes' } <a href="[field:typeurl/]">[field:typename/]</a> {/dede:channel} ~~~ - 百度编辑器div标签自动替换成了P标签的解决方法: ~~~ 在ueditor.config.js里加入这一行: allowDivTransToP:false 去掉li里面加p 搜索 进入编辑器的li要套p标签 去掉第一个each ~~~ - 手机端不生成index.html \m\index.php ~~~ $row['showmod'] = isset($row['showmod'])? $row['showmod'] : 0; if ($row['showmod'] == 1) { $pv->SaveToHtml(dirname(__FILE__).'/index.html'); include(dirname(__FILE__).'/../index.html'); exit(); } else { $pv->Display(); exit(); } 改成 $pv->SetTemplet($cfg_basedir . $cfg_templets_dir . "/" . $row['templet']); $pv->Display(); exit(); ~~~ - 手机端实现 上一篇下一篇 include/arc.archives.class.php 新增移动端判断 ~~~ if ( defined('DEDEMOB') ) { $mlink = 'view.php?aid='.$preRow['id']; } else { $mlink = GetFileUrl($preRow['id'],$preRow['typeid'],$preRow['senddate'],$preRow['title'],$preRow['ismake'],$preRow['arcrank'],$preRow['namerule'],$preRow['typedir'],$preRow['money'],$preRow['filename'],$preRow['moresite'],$preRow['siteurl'],$preRow['sitepath']); } if ( defined('DEDEMOB') ) { $mlink = 'view.php?aid='.$nextRow['id']; } else { $mlink = GetFileUrl($nextRow['id'],$nextRow['typeid'],$nextRow['senddate'],$nextRow['title'],$nextRow['ismake'],$nextRow['arcrank'],$nextRow['namerule'],$nextRow['typedir'],$nextRow['money'],$nextRow['filename'],$nextRow['moresite'],$nextRow['siteurl'],$nextRow['sitepath']); } ~~~ - 修改文章后自动更新摘要描述 管理目录 article_edit.php 113行 ~~~ $description改成 strip_tags($body) ~~~ - 图集上传图片错误修改 ~~~ include/uploadsafe.inc.php 里的第45行的 imtypes 改成imgtypes 加个g ~~~ - 修改友情链接图片不能显示 ~~~ include/datalistcp.class.php 237行 $replacement =substr($ra[$i], 0, 2).substr($ra[$i], 2); ~~~ - 自定义表单编辑 显示空表单 ~~~ 在dede\templets\diy_edit_content.htm 注释掉 if($row[$field]=='') continue; ~~~ - 对于单页管理不能使用编辑器 找到模板编器前面增加 `$GLOBALS['cfg_html_editor']='ckeditor';` 例如templets_one_add.htm templets_one_edit.html