您现在的位置是:首页 > cms教程 > DedeCMS教程DedeCMS教程
dedecms默认模板文件夹templets各个文件的作用介绍
岑刚飘2023-09-28DedeCMS教程已有人查阅
导读在织梦(DedeCMS)系统中,所有的模板存放形式均是以文件的形式存放在系统模板目录(templets)下的默认模板风格目录里。
下面主要讲解以下几个地方
1,DEDEcms默认模板文件夹(templets)的各文件含义
2,模板风格的存放形式以位置;
3,模板风格的命名规则;
4,模板风格的定义方法;
一,模板存放形式
在织梦(DedeCMS)系统中,所有的模板存放形式均是以文件的形式存放在系统模板目录(templets)下的默认模板风格目录里。
二,模板命名规则
刚才我们了解到,织梦的模板风格是以文件形式存放的。它的命名规则基本上按照如下形式:
网站首页:index.htm
封面模板:index_模型识别ID.htm
列表模板:list_模型识别ID.htm
内容模板:article_article.htm
当然,这只是通常情况下的命名规则。实际上,在织梦(DedeCMS)里模板文件的命名是任意的。只要您创建并设置好就可以。当然,为了让这个任意变得更加具体,我也给大家几个注意的地方:
文件名称请不要含有中文;
文件后缀请以.htm结尾;
创建好以后,到网站后台去设置并应用。
三,模板的设置方法
当我们创建好了模板之后,您可以登陆网站后台,切换到『系统』选项卡,点击『系统基本参数』,将里面的“模板默认风格”表单填写为您新建的模板文件夹名称,
点击保存提交即可。
当然,如果您的列表页、内容页、封面页模板不是按照上面的标准格式创建,那么就请继续切换到『核心』选项卡,点击『网站栏目管理』,进入您需要修改的栏目编辑界面,并切换到『高级选项』,把你们的模板文件名修改为您自己的模板,
四,默认模板含义
我们现在讲的这个模板主要是讲它的一些目录和文件存放位置以及它作用。
|-- templets 默认模板目录
|-- templets -- default 默认模板风格目录
|-- templets -- default -- images 默认模板所用到相关图片存放目录
|-- templets -- default -- js 默认模板所用到相关JS存放目录
|-- templets -- default -- style 默认模板所用到的相关CSS样式文件存放目录;
|-- templets -- default -- advancedsearch.htm 自定义模型高级搜索模板
|-- templets -- default -- ajaxfeedback.htm 前台Ajax无刷新评论模板
|-- templets -- default -- article_article.htm 自带文章模型内容页模板
|-- templets -- default -- article_article_frame.htm 自带文章模型内容页模板(支持二级域名的备用模板)
|-- templets -- default -- article_article1.htm 自带文章模型内容页模板(随机备用)
|-- templets -- default -- article_article2.htm 自带文章模型内容页模板(随机备用)
|-- templets -- default -- article_default.htm 系统模型内容页不存在时的默认模板
|-- templets -- default -- article_default_sg.htm 独立模型内容页不存在时的默认模板
|-- templets -- default -- article_image.htm 自带图集模型内容页模板
|-- templets -- default -- article_image_cl.htm 自带图集模型内容页可选模板
|-- templets -- default -- article_image_frame.htm 自带图集模型内容页可选模板
|-- templets -- default -- article_image_new.htm 自带图集模型内容页可选模板
|-- templets -- default -- article_infos.htm 自带分类信息模型内容页模板
|-- templets -- default -- article_shop.htm 自带商品模型内容页模板
|-- templets -- default -- article_soft.htm 自带软件模型内容页模板
|-- templets -- default -- article_soft_frame.htm 自带软件模型内容页可选模板
|-- templets -- default -- article_spec.htm 专题模型内容页可选模板
|-- templets -- default -- article_spec_test.htm 无用模板,忽略
|-- templets -- default -- footer.htm 前台通用底部模板
|-- templets -- default -- googlemap.htm 前台Goolge地图模板
|-- templets -- default -- head.htm 前台通用头部模板
|-- templets -- default -- head2.htm 前台通用头部可选模板
|-- templets -- default -- index.htm 前台网站首页模板
|-- templets -- default -- index_article.htm 自带文章模型频道封面页模板
|-- templets -- default -- index_default.htm 系统模型封面页模板不存在时默认模板
|-- templets -- default -- index_default_sg.htm 独立表单模型封面页模板不存在时默认模板
|-- templets -- default -- index_image.htm 自带图集模型封面页模板
|-- templets -- default -- index_infos.htm 自带分类信息模型封面页模板
|-- templets -- default -- index_shop.htm 自带商品模型封面页模板
|-- templets -- default -- index_soft.htm 自带软件模型封面页模板
|-- templets -- default -- infosw9_index.htm 无效模板,忽略
|-- templets -- default -- infosw9_list.htm 无效模板,忽略
|-- templets -- default -- list_article.htm 自带文章模型栏目列表页模板
|-- templets -- default -- list_default.htm 系统模型列表页模板不存在时默认模板
|-- templets -- default -- list_default_sg.htm 独立表单模型列表页模板不存在时默认模板
|-- templets -- default -- list_free.htm 自由列表模板
|-- templets -- default -- list_image.htm 自带图集模型列表页模板
|-- templets -- default -- list_infos.htm 自带分类信息模型列表页模板
|-- templets -- default -- list_shop.htm 自带商品模型列表页模板
|-- templets -- default -- list_soft.htm 自带软件模型列表页模板
|-- templets -- default -- list_spec.htm 自带专题模型列表页模板
|-- templets -- default -- search.htm 搜索结果页模板
|-- templets -- default -- singlepage.htm 单页文档模板
|-- templets -- default -- tag.htm 默认TAG标签首页模板
|-- templets -- default -- taglist.htm 默认TAG标签列表模板
|-- templets -- lurd 默认Lurd相关模板风格目录(在前台不起作用,可忽略)
|-- templets -- plus 默认plus杂项功能相关模板风格目录
|-- templets -- plus -- feedback_quote_ajax.htm 前台Ajax评论引用模板
|-- templets -- plus -- feedback_templet.htm 评论页模板
|-- templets -- plus -- feedback_quote.htm 评论页引用模板
|-- templets -- plus -- bookfeedback_confirm.htm 小说评论页确认模板
|-- templets -- plus -- bookfeedback_quote.htm 小说评论引用模板
|-- templets -- plus -- bookfeedback_templet.htm 小说评论页模板
|-- templets -- plus -- bookfeedback_templet_js.htm 小说评论JS调用模板
|-- templets -- plus -- car.htm 购物车模板
|-- templets -- plus -- carbuyaction.htm 提交购买模板
|-- templets -- plus -- comments_frame.htm 评论二级域名模板
|-- templets -- plus -- digg_frame.htm 文档Digg二级域名模板
|-- templets -- plus -- download_links_templet.htm 下载地址页模板
|-- templets -- plus -- erraddsave.htm 错误提交页模板
|-- templets -- plus -- feedback_confirm.htm 评论确认页模板
|-- templets -- plus -- feedback_templet_js.htm 评论JS调用模板
|-- templets -- plus -- flink-add.htm 友情链接申请模板
|-- templets -- plus -- flink-list.htm 友情链接页模板
|-- templets -- plus -- guestbook.htm 留言薄插件模板
|-- templets -- plus -- guestbook-admin.htm 留言薄管理员模板
|-- templets -- plus -- guestbook-user.htm 留言薄用户模板
|-- templets -- plus -- heightsearch.htm 高级搜索页模板
|-- templets -- plus -- js.htm JS文件生成模板
|-- templets -- plus -- list_diyform.htm 自定义表单列表模板
|-- templets -- plus -- plus_foot.htm 杂项插件底部模板
|-- templets -- plus -- post_diyform.htm 自定义表单提交模板
|-- templets -- plus -- recommend.htm 文档推荐模板
|-- templets -- plus -- rss.htm 前台RSS文件模板
|-- templets -- plus -- rssmap.htm 前台RSS地图模板
|-- templets -- plus -- shops_action_payment.htm 商城订单购买页模板
|-- templets -- plus -- showphoto.htm 图集浏览模板
|-- templets -- plus -- sitemap.htm 网站地图模板
|-- templets -- plus -- view_diyform.htm 自定义表单浏览模板
|-- templets -- plus -- view_msg.htm 通用提示窗口模板
|-- templets -- plus -- view_msg_catalog.htm 栏目窗口提示模板
|-- templets -- plus -- vote.htm 投票结果显示模板
|-- templets -- plus -- win_templet.htm 通用提示模板
|-- templets -- system 默认各类系统底层模板模板风格目录(一般情况下无需变动)
|-- templets -- templet-dirlist.inc 默认模板文件夹配置文字说明
|-- templets -- templet-filelist.inc 默认模板文件名称配置说明
|-- templets -- templet-pluslist.inc 默认plus杂项功能文件名称配置说明
以上所列出来的仅供参考。
1,DEDEcms默认模板文件夹(templets)的各文件含义
2,模板风格的存放形式以位置;
3,模板风格的命名规则;
4,模板风格的定义方法;
一,模板存放形式
在织梦(DedeCMS)系统中,所有的模板存放形式均是以文件的形式存放在系统模板目录(templets)下的默认模板风格目录里。
二,模板命名规则
刚才我们了解到,织梦的模板风格是以文件形式存放的。它的命名规则基本上按照如下形式:
网站首页:index.htm
封面模板:index_模型识别ID.htm
列表模板:list_模型识别ID.htm
内容模板:article_article.htm
当然,这只是通常情况下的命名规则。实际上,在织梦(DedeCMS)里模板文件的命名是任意的。只要您创建并设置好就可以。当然,为了让这个任意变得更加具体,我也给大家几个注意的地方:
文件名称请不要含有中文;
文件后缀请以.htm结尾;
创建好以后,到网站后台去设置并应用。
三,模板的设置方法
当我们创建好了模板之后,您可以登陆网站后台,切换到『系统』选项卡,点击『系统基本参数』,将里面的“模板默认风格”表单填写为您新建的模板文件夹名称,
点击保存提交即可。
当然,如果您的列表页、内容页、封面页模板不是按照上面的标准格式创建,那么就请继续切换到『核心』选项卡,点击『网站栏目管理』,进入您需要修改的栏目编辑界面,并切换到『高级选项』,把你们的模板文件名修改为您自己的模板,
四,默认模板含义
我们现在讲的这个模板主要是讲它的一些目录和文件存放位置以及它作用。
|-- templets 默认模板目录
|-- templets -- default 默认模板风格目录
|-- templets -- default -- images 默认模板所用到相关图片存放目录
|-- templets -- default -- js 默认模板所用到相关JS存放目录
|-- templets -- default -- style 默认模板所用到的相关CSS样式文件存放目录;
|-- templets -- default -- advancedsearch.htm 自定义模型高级搜索模板
|-- templets -- default -- ajaxfeedback.htm 前台Ajax无刷新评论模板
|-- templets -- default -- article_article.htm 自带文章模型内容页模板
|-- templets -- default -- article_article_frame.htm 自带文章模型内容页模板(支持二级域名的备用模板)
|-- templets -- default -- article_article1.htm 自带文章模型内容页模板(随机备用)
|-- templets -- default -- article_article2.htm 自带文章模型内容页模板(随机备用)
|-- templets -- default -- article_default.htm 系统模型内容页不存在时的默认模板
|-- templets -- default -- article_default_sg.htm 独立模型内容页不存在时的默认模板
|-- templets -- default -- article_image.htm 自带图集模型内容页模板
|-- templets -- default -- article_image_cl.htm 自带图集模型内容页可选模板
|-- templets -- default -- article_image_frame.htm 自带图集模型内容页可选模板
|-- templets -- default -- article_image_new.htm 自带图集模型内容页可选模板
|-- templets -- default -- article_infos.htm 自带分类信息模型内容页模板
|-- templets -- default -- article_shop.htm 自带商品模型内容页模板
|-- templets -- default -- article_soft.htm 自带软件模型内容页模板
|-- templets -- default -- article_soft_frame.htm 自带软件模型内容页可选模板
|-- templets -- default -- article_spec.htm 专题模型内容页可选模板
|-- templets -- default -- article_spec_test.htm 无用模板,忽略
|-- templets -- default -- footer.htm 前台通用底部模板
|-- templets -- default -- googlemap.htm 前台Goolge地图模板
|-- templets -- default -- head.htm 前台通用头部模板
|-- templets -- default -- head2.htm 前台通用头部可选模板
|-- templets -- default -- index.htm 前台网站首页模板
|-- templets -- default -- index_article.htm 自带文章模型频道封面页模板
|-- templets -- default -- index_default.htm 系统模型封面页模板不存在时默认模板
|-- templets -- default -- index_default_sg.htm 独立表单模型封面页模板不存在时默认模板
|-- templets -- default -- index_image.htm 自带图集模型封面页模板
|-- templets -- default -- index_infos.htm 自带分类信息模型封面页模板
|-- templets -- default -- index_shop.htm 自带商品模型封面页模板
|-- templets -- default -- index_soft.htm 自带软件模型封面页模板
|-- templets -- default -- infosw9_index.htm 无效模板,忽略
|-- templets -- default -- infosw9_list.htm 无效模板,忽略
|-- templets -- default -- list_article.htm 自带文章模型栏目列表页模板
|-- templets -- default -- list_default.htm 系统模型列表页模板不存在时默认模板
|-- templets -- default -- list_default_sg.htm 独立表单模型列表页模板不存在时默认模板
|-- templets -- default -- list_free.htm 自由列表模板
|-- templets -- default -- list_image.htm 自带图集模型列表页模板
|-- templets -- default -- list_infos.htm 自带分类信息模型列表页模板
|-- templets -- default -- list_shop.htm 自带商品模型列表页模板
|-- templets -- default -- list_soft.htm 自带软件模型列表页模板
|-- templets -- default -- list_spec.htm 自带专题模型列表页模板
|-- templets -- default -- search.htm 搜索结果页模板
|-- templets -- default -- singlepage.htm 单页文档模板
|-- templets -- default -- tag.htm 默认TAG标签首页模板
|-- templets -- default -- taglist.htm 默认TAG标签列表模板
|-- templets -- lurd 默认Lurd相关模板风格目录(在前台不起作用,可忽略)
|-- templets -- plus 默认plus杂项功能相关模板风格目录
|-- templets -- plus -- feedback_quote_ajax.htm 前台Ajax评论引用模板
|-- templets -- plus -- feedback_templet.htm 评论页模板
|-- templets -- plus -- feedback_quote.htm 评论页引用模板
|-- templets -- plus -- bookfeedback_confirm.htm 小说评论页确认模板
|-- templets -- plus -- bookfeedback_quote.htm 小说评论引用模板
|-- templets -- plus -- bookfeedback_templet.htm 小说评论页模板
|-- templets -- plus -- bookfeedback_templet_js.htm 小说评论JS调用模板
|-- templets -- plus -- car.htm 购物车模板
|-- templets -- plus -- carbuyaction.htm 提交购买模板
|-- templets -- plus -- comments_frame.htm 评论二级域名模板
|-- templets -- plus -- digg_frame.htm 文档Digg二级域名模板
|-- templets -- plus -- download_links_templet.htm 下载地址页模板
|-- templets -- plus -- erraddsave.htm 错误提交页模板
|-- templets -- plus -- feedback_confirm.htm 评论确认页模板
|-- templets -- plus -- feedback_templet_js.htm 评论JS调用模板
|-- templets -- plus -- flink-add.htm 友情链接申请模板
|-- templets -- plus -- flink-list.htm 友情链接页模板
|-- templets -- plus -- guestbook.htm 留言薄插件模板
|-- templets -- plus -- guestbook-admin.htm 留言薄管理员模板
|-- templets -- plus -- guestbook-user.htm 留言薄用户模板
|-- templets -- plus -- heightsearch.htm 高级搜索页模板
|-- templets -- plus -- js.htm JS文件生成模板
|-- templets -- plus -- list_diyform.htm 自定义表单列表模板
|-- templets -- plus -- plus_foot.htm 杂项插件底部模板
|-- templets -- plus -- post_diyform.htm 自定义表单提交模板
|-- templets -- plus -- recommend.htm 文档推荐模板
|-- templets -- plus -- rss.htm 前台RSS文件模板
|-- templets -- plus -- rssmap.htm 前台RSS地图模板
|-- templets -- plus -- shops_action_payment.htm 商城订单购买页模板
|-- templets -- plus -- showphoto.htm 图集浏览模板
|-- templets -- plus -- sitemap.htm 网站地图模板
|-- templets -- plus -- view_diyform.htm 自定义表单浏览模板
|-- templets -- plus -- view_msg.htm 通用提示窗口模板
|-- templets -- plus -- view_msg_catalog.htm 栏目窗口提示模板
|-- templets -- plus -- vote.htm 投票结果显示模板
|-- templets -- plus -- win_templet.htm 通用提示模板
|-- templets -- system 默认各类系统底层模板模板风格目录(一般情况下无需变动)
|-- templets -- templet-dirlist.inc 默认模板文件夹配置文字说明
|-- templets -- templet-filelist.inc 默认模板文件名称配置说明
|-- templets -- templet-pluslist.inc 默认plus杂项功能文件名称配置说明
以上所列出来的仅供参考。
本文标签:
很赞哦! ()
相关教程
图文教程
dede织梦5.7 111015升级出现乱码错误怎么办
下面是原文: 尊敬的织梦用户,您好:由于本次升级打包UTF-8版本存在错误,如果程序出现乱码解决办法如下:
dedecms升级V5.7时部分模块、插件未升级的解决办法
今天和一位朋友一起分享织梦模板应用经验时,朋友告诉我他遇到的一个问题:在dede5.6升级5.7时,有时升级操作时没有检测到已经安装的模块、插件(不可选)
dedecms5.7发布图集时不能获取缩略图怎么办
我们在第一时间找到了解决办法,请使用DEDE的朋友注意了。错误代码文件:dede/inc/inc_archives_functions.php
UCweb浏览器访问DedeCmsWap页面空白怎么办
有些朋友用UCweb访问dedecms Wap页面会出现空白的情况如果出现这种情况可以按下面方法进行修改。
相关源码
-
pbootcms模板(PC+WAP)微信小程序开发公司网站本模板为微信小程序开发代理、软件开发公司等企业设计,基于PbootCMS内核开发,支持PC+WAP双端响应式布局,数据实时同步,适用于多行业快速建站。查看源码 -
(自适应)绿色新闻生活百科资讯文章博客类网站pbootcms模板源码本模板基于PbootCMS开发,为生活百科、资讯文章和博客类网站设计。采用清新绿色系风格,提供舒适的阅读体验,同时适配PC和移动设备。适用于生活技巧分享、健康知识传播查看源码 -
(PC+WAP)蓝色自动电动闸门伸缩门类网站pbootcms模板下载为电动闸门、自动伸缩门企业设计的响应式网站模板,突出产品展示与技术优势,助力门控设备企业建立专业数字化形象。手工编写DIV+CSS结构,代码精简高效,无冗余代码干扰,加载速度更快。查看源码 -
(自适应)html5宽屏电线电缆材料加工制造类企业网站源码下载本模板基于PbootCMS系统开发,特别适合电线电缆、电缆材料及相关加工制造类企业使用。采用HTML5宽屏设计,能够展示各类电缆产品的技术参数和规格详情,帮助客户全面了解产品特性。查看源码 -
(PC+WAP)货运物流快递仓储货架pbootcms网站模板下载本模板基于PbootCMS开发,为货运物流、快递配送、仓储货架等行业设计,支持PC+WAP自适应,确保在电脑、手机、平板等设备上均能流畅访问。适用于物流公司、仓储企业查看源码 -
(自适应响应式)蓝色勘察设计院机构单位商会协会pbootcms模板下载本模板基于PbootCMS系统开发,为勘察设计院所、工程咨询单位设计,特别适合展示设计成果、技术服务和项目案例。采用响应式技术,确保设计图纸和方案以及文案在不同设备上都能清晰展示。查看源码
| 分享笔记 (共有 篇笔记) |
