織夢dede的筆記

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="p_w_picpath" src="/templets/p_w_picpaths/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>


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章