濮阳杆衣贸易有限公司

主頁(yè) > 網(wǎng)站建設(shè) > 建站知識(shí) > DEDEcms默認(rèn)模板文件夾(templets)的各文件含義

DEDEcms默認(rèn)模板文件夾(templets)的各文件含義

POST TIME:2021-05-25 00:32

下面主要講解以下幾個(gè)地方
1,DEDEcms默認(rèn)模板文件夾(templets)的各文件含義
2,模板風(fēng)格的存放形式以位置;
3,模板風(fēng)格的命名規(guī)則;
4,模板風(fēng)格的定義方法;

一,模板存放形式

在織夢(mèng)(DedeCMS)系統(tǒng)中,所有的模板存放形式均是以文件的形式存放在系統(tǒng)模板目錄(templets)下的默認(rèn)模板風(fēng)格目錄里。

二,模板命名規(guī)則

剛才我們了解到,織夢(mèng)的模板風(fēng)格是以文件形式存放的。它的命名規(guī)則基本上按照如下形式:

網(wǎng)站首頁(yè):index.htm
封面模板:index_模型識(shí)別ID.htm
列表模板:list_模型識(shí)別ID.htm
內(nèi)容模板:article_article.htm

當(dāng)然,這只是通常情況下的命名規(guī)則。實(shí)際上,在織夢(mèng)(DedeCMS)里模板文件的命名是任意的。只要您創(chuàng)建并設(shè)置好就可以。當(dāng)然,為了讓這個(gè)任意變得更加具體,我也給大家?guī)讉€(gè)注意的地方:

  1. 文件名稱(chēng)請(qǐng)不要含有中文;
  2. 文件后綴請(qǐng)以.htm結(jié)尾;
  3. 創(chuàng)建好以后,到網(wǎng)站后臺(tái)去設(shè)置并應(yīng)用。

三,模板的設(shè)置方法

當(dāng)我們創(chuàng)建好了模板之后,您可以登陸網(wǎng)站后臺(tái),切換到『系統(tǒng)』選項(xiàng)卡,點(diǎn)擊『系統(tǒng)基本參數(shù)』,將里面的“模板默認(rèn)風(fēng)格”表單填寫(xiě)為您新建的模板文件夾名稱(chēng),如下圖:


點(diǎn)擊保存提交即可。
當(dāng)然,如果您的列表頁(yè)、內(nèi)容頁(yè)、封面頁(yè)模板不是按照上面的標(biāo)準(zhǔn)格式創(chuàng)建,那么就請(qǐng)繼續(xù)切換到『核心』選項(xiàng)卡,點(diǎn)擊『網(wǎng)站欄目管理』,進(jìn)入您需要修改的欄目編輯界面,并切換到『高級(jí)選項(xiàng)』,把你們的模板文件名修改為您自己的模板,如下圖:
 

 

四,默認(rèn)模板含義

我們現(xiàn)在講的這個(gè)模板主要是講它的一些目錄和文件存放位置以及它作用。

|-- templets 默認(rèn)模板目錄
|-- templets -- default 默認(rèn)模板風(fēng)格目錄
|-- templets -- default -- images 默認(rèn)模板所用到相關(guān)圖片存放目錄
|-- templets -- default -- js 默認(rèn)模板所用到相關(guān)JS存放目錄
|-- templets -- default -- style 默認(rèn)模板所用到的相關(guān)CSS樣式文件存放目錄;
|-- templets -- default -- advancedsearch.htm 自定義模型高級(jí)搜索模板
|-- templets -- default -- ajaxfeedback.htm 前臺(tái)Ajax無(wú)刷新評(píng)論模板
|-- templets -- default -- article_article.htm 自帶文章模型內(nèi)容頁(yè)模板
|-- templets -- default -- article_article_frame.htm 自帶文章模型內(nèi)容頁(yè)模板(支持二級(jí)域名的備用模板)
|-- templets -- default -- article_article1.htm 自帶文章模型內(nèi)容頁(yè)模板(隨機(jī)備用)
|-- templets -- default -- article_article2.htm 自帶文章模型內(nèi)容頁(yè)模板(隨機(jī)備用)
|-- templets -- default -- article_default.htm 系統(tǒng)模型內(nèi)容頁(yè)不存在時(shí)的默認(rèn)模板
|-- templets -- default -- article_default_sg.htm 獨(dú)立模型內(nèi)容頁(yè)不存在時(shí)的默認(rèn)模板
|-- templets -- default -- article_image.htm 自帶圖集模型內(nèi)容頁(yè)模板
|-- templets -- default -- article_image_cl.htm 自帶圖集模型內(nèi)容頁(yè)可選模板
|-- templets -- default -- article_image_frame.htm 自帶圖集模型內(nèi)容頁(yè)可選模板
|-- templets -- default -- article_image_new.htm 自帶圖集模型內(nèi)容頁(yè)可選模板
|-- templets -- default -- article_infos.htm 自帶分類(lèi)信息模型內(nèi)容頁(yè)模板
|-- templets -- default -- article_shop.htm 自帶商品模型內(nèi)容頁(yè)模板
|-- templets -- default -- article_soft.htm 自帶軟件模型內(nèi)容頁(yè)模板
|-- templets -- default -- article_soft_frame.htm 自帶軟件模型內(nèi)容頁(yè)可選模板
|-- templets -- default -- article_spec.htm 專(zhuān)題模型內(nèi)容頁(yè)可選模板
|-- templets -- default -- article_spec_test.htm 無(wú)用模板,忽略
|-- templets -- default -- footer.htm 前臺(tái)通用底部模板
|-- templets -- default -- googlemap.htm 前臺(tái)Goolge地圖模板
|-- templets -- default -- head.htm 前臺(tái)通用頭部模板
|-- templets -- default -- head2.htm 前臺(tái)通用頭部可選模板
|-- templets -- default -- index.htm 前臺(tái)網(wǎng)站首頁(yè)模板
|-- templets -- default -- index_article.htm 自帶文章模型頻道封面頁(yè)模板
|-- templets -- default -- index_default.htm 系統(tǒng)模型封面頁(yè)模板不存在時(shí)默認(rèn)模板
|-- templets -- default -- index_default_sg.htm 獨(dú)立表單模型封面頁(yè)模板不存在時(shí)默認(rèn)模板
|-- templets -- default -- index_image.htm 自帶圖集模型封面頁(yè)模板
|-- templets -- default -- index_infos.htm 自帶分類(lèi)信息模型封面頁(yè)模板
|-- templets -- default -- index_shop.htm 自帶商品模型封面頁(yè)模板
|-- templets -- default -- index_soft.htm 自帶軟件模型封面頁(yè)模板
|-- templets -- default -- infosw9_index.htm 無(wú)效模板,忽略
|-- templets -- default -- infosw9_list.htm 無(wú)效模板,忽略
|-- templets -- default -- list_article.htm 自帶文章模型欄目列表頁(yè)模板
|-- templets -- default -- list_default.htm 系統(tǒng)模型列表頁(yè)模板不存在時(shí)默認(rèn)模板
|-- templets -- default -- list_default_sg.htm 獨(dú)立表單模型列表頁(yè)模板不存在時(shí)默認(rèn)模板
|-- templets -- default -- list_free.htm 自由列表模板
|-- templets -- default -- list_image.htm 自帶圖集模型列表頁(yè)模板
|-- templets -- default -- list_infos.htm 自帶分類(lèi)信息模型列表頁(yè)模板
|-- templets -- default -- list_shop.htm 自帶商品模型列表頁(yè)模板
|-- templets -- default -- list_soft.htm 自帶軟件模型列表頁(yè)模板
|-- templets -- default -- list_spec.htm 自帶專(zhuān)題模型列表頁(yè)模板
|-- templets -- default -- search.htm 搜索結(jié)果頁(yè)模板
|-- templets -- default -- singlepage.htm 單頁(yè)文檔模板
|-- templets -- default -- tag.htm 默認(rèn)TAG標(biāo)簽首頁(yè)模板
|-- templets -- default -- taglist.htm 默認(rèn)TAG標(biāo)簽列表模板

|-- templets -- lurd 默認(rèn)Lurd相關(guān)模板風(fēng)格目錄(在前臺(tái)不起作用,可忽略)

|-- templets -- plus 默認(rèn)plus雜項(xiàng)功能相關(guān)模板風(fēng)格目錄
|-- templets -- plus -- feedback_quote_ajax.htm 前臺(tái)Ajax評(píng)論引用模板
|-- templets -- plus -- feedback_templet.htm 評(píng)論頁(yè)模板
|-- templets -- plus -- feedback_quote.htm 評(píng)論頁(yè)引用模板
|-- templets -- plus -- bookfeedback_confirm.htm 小說(shuō)評(píng)論頁(yè)確認(rèn)模板
|-- templets -- plus -- bookfeedback_quote.htm 小說(shuō)評(píng)論引用模板
|-- templets -- plus -- bookfeedback_templet.htm 小說(shuō)評(píng)論頁(yè)模板
|-- templets -- plus -- bookfeedback_templet_js.htm 小說(shuō)評(píng)論JS調(diào)用模板
|-- templets -- plus -- car.htm 購(gòu)物車(chē)模板
|-- templets -- plus -- carbuyaction.htm 提交購(gòu)買(mǎi)模板
|-- templets -- plus -- comments_frame.htm 評(píng)論二級(jí)域名模板
|-- templets -- plus -- digg_frame.htm 文檔Digg二級(jí)域名模板
|-- templets -- plus -- download_links_templet.htm 下載地址頁(yè)模板
|-- templets -- plus -- erraddsave.htm 錯(cuò)誤提交頁(yè)模板
|-- templets -- plus -- feedback_confirm.htm 評(píng)論確認(rèn)頁(yè)模板
|-- templets -- plus -- feedback_templet_js.htm 評(píng)論JS調(diào)用模板
|-- templets -- plus -- flink-add.htm 友情鏈接申請(qǐng)模板
|-- templets -- plus -- flink-list.htm 友情鏈接頁(yè)模板
|-- templets -- plus -- guestbook.htm 留言薄插件模板
|-- templets -- plus -- guestbook-admin.htm 留言薄管理員模板
|-- templets -- plus -- guestbook-user.htm 留言薄用戶模板
|-- templets -- plus -- heightsearch.htm 高級(jí)搜索頁(yè)模板
|-- templets -- plus -- js.htm JS文件生成模板
|-- templets -- plus -- list_diyform.htm 自定義表單列表模板
|-- templets -- plus -- plus_foot.htm 雜項(xiàng)插件底部模板
|-- templets -- plus -- post_diyform.htm 自定義表單提交模板
|-- templets -- plus -- recommend.htm 文檔推薦模板
|-- templets -- plus -- rss.htm 前臺(tái)RSS文件模板
|-- templets -- plus -- rssmap.htm 前臺(tái)RSS地圖模板
|-- templets -- plus -- shops_action_payment.htm 商城訂單購(gòu)買(mǎi)頁(yè)模板
|-- templets -- plus -- showphoto.htm 圖集瀏覽模板
|-- templets -- plus -- sitemap.htm 網(wǎng)站地圖模板
|-- templets -- plus -- view_diyform.htm 自定義表單瀏覽模板
|-- templets -- plus -- view_msg.htm 通用提示窗口模板
|-- templets -- plus -- view_msg_catalog.htm 欄目窗口提示模板
|-- templets -- plus -- vote.htm 投票結(jié)果顯示模板
|-- templets -- plus -- win_templet.htm 通用提示模板

|-- templets -- system 默認(rèn)各類(lèi)系統(tǒng)底層模板模板風(fēng)格目錄(一般情況下無(wú)需變動(dòng))
|-- templets -- templet-dirlist.inc 默認(rèn)模板文件夾配置文字說(shuō)明
|-- templets -- templet-filelist.inc 默認(rèn)模板文件名稱(chēng)配置說(shuō)明
|-- templets -- templet-pluslist.inc 默認(rèn)plus雜項(xiàng)功能文件名稱(chēng)配置說(shuō)明

以上所列出來(lái)的僅供參考。




收縮
  • 微信客服
  • 微信二維碼
  • 電話咨詢

  • 400-1100-266
凤山市| 建德市| 铁岭市| 庄河市| 陆川县| 榆林市| 乐陵市| 铁力市| 德阳市| 敖汉旗| 固原市| 宁夏| 镇宁| 蒙阴县| 贵定县| 沭阳县| 嘉鱼县| 博湖县| 红桥区| 讷河市| 都江堰市| 刚察县| 乐陵市| 江山市| 江津市| 永年县| 东台市| 石棉县| 剑阁县| 饶河县| 通辽市| 陕西省| 长治县| 从化市| 泗水县| 沙湾县| 濮阳市| 镇雄县| 东山县| 额尔古纳市| 夹江县|