您现在的位置是:首页 > 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杂项功能文件名称配置说明
以上所列出来的仅供参考。
本文标签:
很赞哦! ()
相关教程
图文教程
实现复制文章自动加版权功能的代码实例
版权功能实现加上自动复制文章 类似 " text代码号分析介绍,复制文章时带有版权功能并不复杂,代码如下:
dede织梦后台登陆提示验证码错误的修改方法
浅谈“各种dede织梦后台登陆验证码错误或不显示解决方法!大家知道,常见的就是验证码输入明明是正确但却提示不正确,或者压根儿不显示。说一下碰到这种情况的几种原因:
dedecms网站模板制作方法介绍
一、织梦模板解析引擎概述 在了解DedeCms的模板代码之前,了解一下织梦模板引擎的知识是非常有意义的。织梦模板引擎是一种使用XML名字空间形式的模板解析器
用数据库批量修改替换dedecms文章标题和内容的方法
如果一个dedecms系统的门户网站,里面的信息内容,已经成千上万,当有一天想要修改大部分文章中的信息时,单篇文章修改的方法不是太现在
相关源码
-
(自适应)WordPress主题SEO自媒体博客资讯模板RabbitV2.0Rabbit v2.0主题专注于网站搜索引擎优化需求,为博客、自媒体及资讯类网站提供专业的SEO技术解决方案。该主题从架构设计到功能实现均围绕搜索引擎优化理念展开。查看源码 -
(自适应)餐饮小吃火锅加盟pbootcms模板源码下载本模板基于PbootCMS系统开发,为火锅餐饮、小吃加盟等餐饮企业打造。采用响应式设计,适配各类移动设备,帮助餐饮企业展示特色菜品、加盟政策和服务优势。查看源码 -
(自适应)响应式文章博客互联网新闻pbootcms模板下载本模板基于PbootCMS开发,专为科技新闻、互联网资讯和文章博客类网站设计。采用响应式布局技术,确保在电脑、平板和手机上都能获得最佳浏览体验。适用于科技媒体、行业博客查看源码 -
(自适应)摄像头安防电子设备pbootcms源码下载本模板基于PbootCMS系统开发,为安防电子设备企业设计,特别适合监控摄像头、安防系统等产品的展示。采用响应式技术,确保各类设备参数和功能在不同终端上都能清晰呈现。查看源码 -
(自适应)平面设计网络工作室个人作品展示网站模板免费下载基于PbootCMS内核开发的响应式网站模板,为设计工作室、创意机构打造的作品展示解决方案。通过模块化布局与极简交互设计,呈现设计作品的视觉细节,支持作品分类、案例解析等多维度展示方式。查看源码 -
(自适应)绿色LED灯具照明灯饰灯光灯泡pbootcms网站源码下载本模板基于PbootCMS内核开发,为LED照明、灯具制造及相关光电技术企业量身打造。设计充分考虑了照明行业的展示需求,从产品陈列到技术说明,从光源展示到工程案例,每一个细节都体现出专业照明行业的特点。查看源码
| 分享笔记 (共有 篇笔记) |
