全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Dede仿站标签-栏目名字dede:type typeid=3field:typename /dede:typeword-breaka display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 140px; dede:arclist flag=h limit=0,1 infolen=230 titlelen=50 field:title/ field:info/.查看全文 /dede:arclist field:content function=cn_substr(Html2Text(me),100)/ 内容字数限制field:pubdate function=MyDate(Y-m-d,me)/ 日期全部栏目添加完后执行一下SQL就行了 更改默认栏目名称UPDATE dede_arctype SET namerule=typedir/aid.html;UPDATE dede_arctype SET namerule2=browse/list_tid_page.html; 批量修改文件保存目录方法:update dede_arctype set typedir=replace(typedir,/a,/tb)问题:怎样在列表页中显示当前栏目的名称,怎么样调用标签?解答:这个:dede:field name=typename/ field:typelink/首页连接:dede:global.cfg_basehost/友情链接:dede:flink type=text linktype=2 titlelen=20 row=100field:link/dede:flink二级连接:dede:include filename=head.htm/相关文章dede:likearticle row=8 titlelen=30field:title/field:pubdate function=MyDate(m/d,me)/dede:likearticle强大的循环增强:field:global name=autoindex runphp=yesme=me+1;if(me35)(me%4=0)?me= :me=;else me=/field:globalfield:global name=autoindex /autoindex和itemindex使用方法是一样的。但是dede:channelartlist 下 dede:global.itemindex runphp=yes me=;/dede:global.itemindex 匹配中文字符的正则表达式: u4e00-u9fa5 网站templets地址:dede:global.cfg_templeturl/css/player/34/player_300159.htmlUPDATE erbihou.dede_arctype SET typedir = Replace(typedir,cmspath,) WHERE dede_arctype.topid =42;dede:channelartlist typeid=2,3dede:field name=typename/ dede:arclistsg row=2 titlelen=44 orderby=hot channelid=-8 field:title/ /dede:arclistsg/dede:channelartlistfunction pasterTempletDiy($path) require_once(DEDEINC./arc.partview.class.php); global $cfg_basedir,$cfg_templets_dir; $tmpfile = $cfg_basedir.$cfg_templets_dir./.$path;/模版文件的路径 $dtp = new PartView(); $dtp-SetTemplet($tmpfile); $dtp-Display();在DEDE栏目页或者内容页中调用当前栏目的父级栏目名称:静态页复制代码dede:typefield:id runphp=yes $tsql = new DedeSql(false); $typelink2 = ; $tsql-SetQuery(Select i.typedir,i.id,i.typename From #_arctype t left join #_arctype i on i.id=t.reid where t.id=me); $tsql-Execute(t); while($row = $tsql-GetArray(t,MYSQL_ASSOC) $typelink2 .= .$rowtypename.; me=str_replace(cmspath,$typelink2);/field:id/dede:type动态页:复制代码dede:typefield:id runphp=yes $tsql = new DedeSql(false); $typelink2 = ; $tsql-SetQuery(Select i.typedir,i.id,i.typename From #_arctype t left join #_arctype i on i.id=t.reid where t.id=me); $tsql-Execute(t); while($row = $tsql-GetArray(t,MYSQL_ASSOC) $typelink2 .= .$rowtypename.; me=$typelink2;/field:id/dede:typeinsert into dede_arcatt(sortid,att,attname) values(9,d,评论);alter table dede_archives modify flag set (h,c,p,f,s,j,a,b,d) default NULL; INSERT INTO dede_arctype (id, reid, topid, sortrank, typename, typedir, isdefault, defaultname, issend, channeltype, maxpage, ispart, corank, tempindex, templist, temparticle, namerule, namerule2, modname, description, keywords, seotitle, moresite, sitepath, siteurl, ishidden, cross, crossid, content, smalltypes) VALUES(2, 0, 0, 50, 100, cmspath/100, 1, index.html, 1, 1, -1, 0, 0, style/index_article.htm, style/list_article.htm, style/article_article.htm, typedir/Y/MD/aid.html, typedir/list_tid_page.html, default, , , , 0, , , 0, 0, , , );.dede_pages ul float: left; padding: 12px 0 12px 16px;.dede_pages ul li border: 1px solid #E9E9E9; float: left; font-family: Tahoma; line-height: 17px; margin-right: 6px;.dede_pages ul li a color: #555555; display: block; float: left; padding: 2px 4px;.dede_pages ul li.thisclass background-color: #F8F8F8; font-weight: bold; padding: 2px 4px;.dede_pages .pageinfo color: #999999; line-height: 21px; padding: 12px 10px 12px 16px;.dede_pages .pageinfo strong color: #555555; font-weight: normal; margin: 0 2px; 搜索 全部栏目 dede:channelartlist typeid=top dede:type field:typename/dede:type dede:channel type=son noself=yes -field:typename/ /dede:channel /dede:channelartlist 搜索 javascript:(function(F,i,r,e,b,u,g,L,I,T,E)if(F.getElementById(b)return;E=Fi+NS&F.documentEspaceURI;E=E?Fi+NS(E,script):Fi(script);Er(id,b);Er(src,I+g+T);Er(b,u);(Fe(head)0|Fe(body)
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 绿色发展视角下钢铁产业物资供应商评价与选择
- 2024年蕉岭县一级造价工程师《土建计量》高分冲刺试卷含解析
- DB46T 639-2024土壤和沉积物 六价铬的测定 碱溶液提取-柱后衍生离子色谱法
- 垃圾分类教学案
- 九年级化学下册《化学与材料》学案沪教版
- 乳饮料的冷链物流优化与食品安全保障考核试卷
- 钾肥生产过程中的节能减排措施考核试卷
- 道路运输企业法律风险防范与合规经营考核试卷
- 半导体器件制造工艺流程设计考核试卷
- 葡萄酒酿造过程中的酿造产业链优化与升级考核试卷
- 财政核心业务一体化系统培训
- 鼻饲法(很棒)课件
- 食品微生物实验室的基本要求课件
- 《小英雄雨来》名著导读课件
- 生猪屠宰企业检验人员考试试卷
- 宗教临时活动地点申请表
- 登腾种植-dentiumchina-iifinal系统
- 鹰潭市余江区乡镇街道社区行政村统计表
- 地铁是怎样建成少儿科普版共21张课件
- 2022年屯昌县工会系统招聘考试题库及答案解析
- 中长跑体育-完整版课件
评论
0/150
提交评论