码迷,mamicode.com
首页 > 其他好文 > 详细

织梦dede的笔记

时间:2015-06-17 18:31:55      阅读:267      评论:0      收藏:0      [点我收藏+]

标签:织梦笔记

1、在织梦中如何实现qq聊天:

http://wpa.qq.com/msgrd?v=3&uin=909185693&site=qq&menu=yes

2、织梦中导航栏的转换:

     {dede:field name=‘position‘ function=‘str_replace("主页 > 爱车世界 >"," ",Html2Text("@me"))‘/}

     例如:{dede:field name=‘position‘ function=‘str_replace("主页 > 爱车世界 >","首页 >",Html2Text("@me"))‘/}


3、后台留言板的路径:

 http://localhost/plus/diy.php?action=post&diyid=1;


4、所有的文章和栏目静态与动态的转换:

    1.将所有文档设置为“仅动态”:update dede_archives set ismake=-1;
    2.将所有文档设置为“仅静态”:update dede_archives set ismake=1;
    3.将所有栏目设置为“使用动态页”: update dede_arctype set isdefault=-1;
    4.将所有栏目设置为“使用静态页”: update dede_arctype set isdefault=1;


5、织梦的搜索:

<from name="formsearch" action="/plus/search.php">
    <input type="hidden" name="kwtype" value="0"/>
    <div class="d_top_l_l">
        <input name="q" type="text" class="search-keyword" id="search-keyword" value="在这

         里搜索..." onfocus="if(this.value==‘在这里搜索...‘){this.value=‘‘;}"  onblur="if

        (this.value==‘‘){this.value=‘在这里搜索...‘;}"/>
    </div>
    <div class="d_top_l_r">
        <input name="" type="image" src="/templets/images/top_sstb.gif"/>
    </div>
</from>

6、织梦中分页,引入page.css样式:

分页样式page.css :s
/***
 *    DedeCMS v5.3 Style (grass green)
 *    dedecms.com  Author pigz  2008-11-10 09:32
 **/


.dede_pages{ float:right; margin-right:50px;
}
.dede_pages ul{
    float:left;
    padding:14px 0px 14px 16px;
}
.dede_pages ul li{
    float:left;
    font-family:Tahoma;
    line-height:17px;
    margin-right:6px;
    border:1px solid #ccc; 
    padding:4px 10px 4px;
}
.dede_pages ul li a{
    float:left;
    color:#555;
    display:block;
}
.dede_pages ul li a:hover{
    color:#f7941c;
    text-decoration:none;

}
.dede_pages ul li.thisclass,
.dede_pages ul li.thisclass,.pagebox ul li.thisclass a:hover{ border:1px solid #999; background:#FFFFCC; display:block;

}
.dede_pages .pageinfo{
    padding:0 5px;
    color:#999;
    float:left;
    
}
.dede_pages .pageinfo strong{
    color:#555;
    font-weight:normal;
    margin:0px 2px;
}
分页代码:
<div class="dede_pages">
    <ul class=pagelist>
        {dede:pagelist listitem="info,index,end,pre,next,pageno,option"listsize=""/}
    </ul>
</div>


本文出自 “彳亍的路人” 博客,请务必保留此出处http://7112081.blog.51cto.com/7102081/1662752

织梦dede的笔记

标签:织梦笔记

原文地址:http://7112081.blog.51cto.com/7102081/1662752

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!