织梦网站建设手册

织梦网站建设手册

ID:6135730

大小:184.00 KB

页数:29页

时间:2018-01-04

织梦网站建设手册_第1页
织梦网站建设手册_第2页
织梦网站建设手册_第3页
织梦网站建设手册_第4页
织梦网站建设手册_第5页
资源描述:

《织梦网站建设手册》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、//织梦的网站查询手册//红色为问题集//橄榄色为注释//紫色为拓展1.网站标题(优化):{dede:field.title/}_{dede:global.cfg_webname/}2.当前名称:{dede:fieldname='typename'/}3.导航条(父类、子类):{dede:channeltype='top'row='8'currentstyle="

  • ~typename~
  • "}
  • [field:typename/]

    2、li>{/dede:channel}4.面包屑:{dede:fieldname='position'/}//出来的效果是:首页>新闻动态>{dede:fieldname='position'runphp='yes'}@me=substr(@me,0,-2);{/dede:field}//出来的效果是:首页>新闻动态生成的代码为首页>新闻动态函数的位置include/typelink.class.php参考网站:http://www.simple-studio.net/2011060216.shtml注意:在列表页的时候{dede:f

    3、ieldname='position'/}效果是首页>联系我们>在封面页的时候{dede:fieldname='positon'/}效果是首页>联系我们少一个后边的>删除当前位置下的超链接,只保留文字..方法1:文件includearc.archives.class.php文件includearc.listview.class.php文件includearc.partview.class.php把三个文件里面的这句Fields['position']=$this->TypeLink->GetPositionLink(true);都改成Fields['position']=$thi

    4、s->TypeLink->GetPositionLink(false);方法2:{dede:fieldname='position'function="strip_tags(@me)"/}或者{dede:fieldname='position'function="html2txt(@me)"/}参考网站:http://www.cnblogs.com/Byrd/archive/2011/04/27/2030458.html5.关于列表页和内容页的分页代码和css样式(可以直接拿来使用)ul.pagesize{width:620px;margin:20pxauto10px;text-align:

    5、center;padding-bottom:10px;}ul.pagesizea{padding:5px;margin-right:5px;color:#333333;text-decoration:none;}ul.pagesizespan.thisclass{padding:5px;margin-right:5px;color:#fc0;}ul.pagesizespan.pageinfo{}列表页的php页面:include/arc.listview.class.php分页代码文章页的php页面:include/arc.archives.class.php分页代码也可以用文件夹下的各种酷

    6、炫分页效果。6.控制标签的字数(如description或者info或者body)[field:descriptionfunction='cn_substr(@me,80)'/][field:bodyfunction='cn_substr(@me,80)'/]不足显示全文,超过显示省略号...[field:titlefunction='(strlen("@me")>26?cn_substr("@me",26)."…":"@me")'/]7.调用时间函数(多用于新闻列表的时间)[field:pubdatefunction="MyDate('Y-m-dH:i',@me)"/]pubdate更新时

    7、间(发布时间)--可以修改senddate出版时间--不可更改8.替换

    等html标签的用法{dede:field.bodyrunphp="yes"}$a=str_replace('div','p','@me');$b=str_replace('
    ','',$a);@me=str_replace(' ','',$b);{/dede:field.body}9.自定义表单增加

  • 当前文档最多预览五页,下载文档查看全文

    此文档下载收益归作者所有

    当前文档最多预览五页,下载文档查看全文
    温馨提示:
    1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
    2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
    3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
    4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。