您现在的位置是:首页 > 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杂项功能文件名称配置说明
以上所列出来的仅供参考。
本文标签:
很赞哦! ()
相关教程
图文教程
织梦dedecms5.7单页面效果怎么实现
在使用dedecms程序制作网站的时候,有时需要制作一些“关于我们”、“联系我们”等单页面,在dedecms里有很多方法可以实现这个页面的功能本教程就主要分享2种方法
dede建站每日一课之首页调用栏目
有些用dedeCMS的新手站长苦恼一点儿,就是如何在网站首页调用任意指定栏目的标题和列表,其实难的不是栏目的列表,而是栏目的标题
dede织梦如何调用含有某一关键词的文章
我们网站里有很多文章中含有“织梦,dedecms”的词,那么想在网站首页、频道页、文章页等页面调用含有“织梦,dedecms”这个词的一些文章,怎么调用呢?
dedecms织梦实现任意页面调用栏目内容的方法
我们在使用dedecms织梦建站的时候,遇到封面模型的页面,经常把内容写到栏目内容中作为单页使用,比如公司简介、联系我们等等单页都可以写到栏目内容中
相关源码
-
(自适应响应式)pbootcms紫色美容整形机构企业模板下载基于PbootCMS内核开发的响应式网站模板,为医疗美容机构、整形医院等企业设计,提供完整的线上展示平台采用紫色系配色方案,整体风格专业大气。模板包含首页轮播、服务项目、专家团队、案例展示等核心模块,能够充分展示医疗美容机构的专业服务和特色优势。查看源码 -
(自适应响应式)HTML5简繁双语电子元器件设备制造Pbootcms模板下载本模板为电子科技设备制造、电子元件生产等高科技企业设计,采用PbootCMS内核开发,具备简繁双语切换功能。模板设计充分考虑了电子科技行业的技术展示需求,能够专业呈现各类电子元器件、电路板、智能设备的参数规格和应用方案。查看源码 -
(自适应)蓝色环保科技设备带三级栏目网站模板下载该模板为环保科技企业设计,提供专业的产品展示与技术服务平台。采用响应式布局,适配环保设备、清洁技术等应用场景,通过可视化后台可快速搭建符合行业特性的展示网站。查看源码 -
(自适应响应式)html5蓝色智能水表营销型网站pbootcms模板下载PbootCMS内核开发,为智能水表企业打造的营销型网站解决方案,本模板基于PbootCMS内核开发,为智能水表及相关行业企业设计,采用HTML5+CSS3技术构建,具有响应式布局。查看源码 -
(PC+WAP)楼承板建筑工程合金钢铁材料pbootcms网站源码下载为楼承板生产商及建筑工程企业设计的响应式网站模板,采用PbootCMS内核开发,同步适配电脑与移动设备浏览。通过模块化结构展示工程案例、产品参数等专业内容,帮助建筑建材企业建立标准化数字展示平台,提升行业专业形象。查看源码 -
(自适应响应式)高端珠宝首饰奢侈品pbootcms模板下载本模板为珠宝首饰及奢侈品行业打造,采用PbootCMS内核开发,具备卓越的视觉表现力与商业转化能力。自适应设计确保在手机端呈现产品细节,后台数据实时同步,助您高效展示钻石查看源码
| 分享笔记 (共有 篇笔记) |
