文档详情

DEDECMS 心得.pptx

发布:2017-11-13约2.03千字共6页下载文档
文本预览下载声明
DEDECMS 开发心得DB配置+后台登录类别位置Db 配置连接:\data\common.inc.phpSql类:\include\dedesql.class.php\include\dedesqli.class.php后台入口\power\index.phpConfig.php:一级目录的路径的变量定义调用\include\userlogin.class.php ?Userlogin()账户名、密码验证+验证码(Cookies 比较)3. 界面模板/templets/logon.htm后台首页 index.php界面模板/templets/index2.htm -顶部Index_menu2.htm-左部菜单栏index_body.htm- 右部内容模块说明系统参数配置\power\sys_info.phptemplets/sys_info.htm\power\inc\configgroup.txt –配置组网站栏目管理首页:\power\catalog_main.php?\include\typeunit.class.admin.php ?\include\channelunit.func.php?\power\templets\catalog_main.htm增加栏目:\power\catalog_add.php?\include\typelink.class.php?\power\templets\catalog_add.htm GetEditor(content,,450,Default,print,false);这个函数来自include\helpers\util.helper.phpUtil.helper.php调用include\inc\inc_fun_funAdmin.php, 然后在调用include/FCKeditor/“确定”增加栏目:\power\templets\catalog_add.htm Form里面调用catalog_add.php的 Html2Text(), 该函数在:Include\helpers\string.helper.php,然后又调用\inc\inc_fun_funstring.php模块说明网站栏目管理更新栏目缓存:\power\catalog_do.php更新栏目html:\power\makehtml_list.php预览:\plus\list.php调用include\arc.listview.class.php 和arc.sglistview.class.php显示的模板:templets/plus/view_msg_catalog.htm首页模板:templets/default/index_default.htmtemplets/default/index_article.htmDisplay() in arc.listview.class.php 调用DisplayPartTemplets() DisplayPartTemplets调用:SetTypeLink() – arc.partview.class.phpSetTemplet() – arc.partview.class.php , 然后调用:LoadSource() – detetag.class.php ? LoadTemplate ()Arc.listview.class.php引用arc.partview.class.php ,ftp.class.php,memberlogin.class.php新手记得先复习一下参数的意思,这里的typeid=栏目ID,1的1为固定值,“栏目”为要调用的栏目ID,一定不要掉了东西。 !-- begin:加入首页调用栏目---??dl class=tbox?{dede:channelartlist typeid=‘2,1’}?dt?strong{dede:field.typename/}/strong?span class=morea href={dede:field.typeurl/}更多.../a?/span?/dt?dd?ul class=d1 ico3“?{dede:arclist titlelen=60 row=8 orderby=pubdate idlist=‘}?li[field:textlink/]([field:pubdate function=MyDate(m-d,@me) /])/li?{/dede:arclist}?/ul?/dd?{/dede:channelartlist}?/dl??!-- over:加入首页调用栏目---调用多个栏目单个时typeid= ‘-100,2’
显示全部
相似文档