Dede Weave Dream CMS folder directory structure

Source: Internet
Author: User
Tags php website

This article is mainly for the future of Dedecms do two development written. After installing the Dedecms directory, as shown in (Figure 1),

Figure 1-File root directory

"A": Default HTML file storage directory

"Data": System cache or other writable data storage directory

"Dede": Default background Management directory

"Images": System default template Picture storage directory

"Include": Class library file directory

"Install": the installer Directory, can be removed after installation

"Member": Membership Directory

"Plus": the Directory of the aid program

"Special": Featured Catalogue

"Templets": System default Kernel template directory

"Uploads": Default upload Directory

"index.php": Website default home Page

"Robots.txt": Search Control File

"Tags.php": Tab page

After understanding the structure of the Dedecms root directory, let's look at a few of the more important parts of two development.

(1) "Data": System cache or other writable data storage directory

First, look at the structure of the "data" folder, as shown in (Figure 2),

Figure 2-data Structure of the folder

Data: Background information, program version
admin: Some info from admin backstage
Backupdata: Store back-Office system Management data backup, data restore some backup information are stored in this directory
Cache: Some directory of cached files
Enums: An instant file that classifies some other information in the region
JS: Generated JS file storage directory
Moudle: The module information in the background is stored here
RSS: Subscription information
Sessions: Background front desk can not log in to see if this directory is not writable permissions,
common.inc.php: Database configuration file, database current information file
config.cache.inc.php: The system Setup file, the system basic parameter setting information is stored in this file

(2) "Dede": Default Admin directory

"Dede" is stored in the Dedecms background files, for the background part of the development will use the files, such as: development models, modules and small plug-ins and so on. This section will be introduced gradually in the specific development process.

Catalogue Description:

./dede Dede Backstage
./html generate columns corresponding to the file
./include class Library, configuration file, thesaurus
./member member Features
./plus Plugin (guestbook, voting: )
./setup Installer Directory
./special Topic Build Directory
./templets Site Template Directory
./upimg collection, the directory where the user uploads the attachment

BASE.CSS Basic Style Sheet
index.php website Default home page
Robots.txt Search Control files

File Description:

./index.html HTML home file generated by the template
./index.php

Parse the template, and display the first page,
Specific code to do an analysis:

Require_once (DirName (__file__). " /include/config_base.php ");
Require_once (DirName (__file__). " /include/inc_arcpart_view.php ");

The above two paragraphs are called two files one is the basic configuration file, the other is the article class file

DirName (__file__) is the current path

CODE:

$dsql = new Dedesql (false);
$row = $dsql-Getone_r ("SELECT * from Dede_homepageset");
$dsql->close ();


SQL statement, query table Dede_homepageset field Templet (which template to call)


CODE:

$PV = new Partview ();
$PV->settemplet ($cfg _basedir. " /". $cfg _templets_dir." /". $row [' Templet ']);
$PV->display ();
$PV->close ();

Class Library Invocation,

$cfg _basedir. " /". $cfg _templets_dir." /". is the path,

$row [' Templet '] is the exact location of the template,

Then $pv->display (); Display the template file.

============================================

/templets Template Catalog

/DEDECMSV31 3 Template Catalog

/default Default Template Directory

Article_article.htm General article page template
Article_default.htm General Document page templates
article_flash.htm Flash page Template
Article_image.htm Atlas page templates
Article_soft.htm Software page templates
Article_spec.htm Featured page templates
Index.htm Website Homepage Template
Index_article.htm Article Channel cover template
Index_article_webart1.htm
Index_article_webart2.htm
Index_article_webart.htm
Index_default.htm General Document Cover page template
Index_flash.htm Flash Channel cover template
Index_image.htm Atlas Channel cover page template
Index_soft.htm Software Channel cover template
List_article.htm Article list template
List_default.htm General Document List Catalog template
List_flash.htm Flash Document List template
list_free.htm Free list template
list_image.htm Atlas list template
list_soft.htm Software list template
List_spec.htm Featured List Templates

/img template Picture catalog (with style sheet)

/plus Plugin Template directory

download_links_templet.htm Download Link Template
Feedback_confirm.htm Comment Confirmation Template
Feedback_templet.htm User Review Template
Feedback_templet_js.htm
Flink-add.htm links to add templates
Flink-list.htm Links list template
Guestbook.htm message This template
Heightsearch.htm Advanced Search Templates
Js.htm
Recommend.htm Recommended friend templates
XML template for rss.htm RSS
Rssmap.htm RSS Subscription File
showphoto.htm Picture Display Template
sitemap.htm Site Map Template
View_msg.htm member Tip Information template
Vote.htm Poll Results Display template

/system System Template Directory

channel_list.htm Column List system template
List_fulllist.htm Document List System template
Mynews.htm Site News System template
Part_arclist.htm article List system template
Part_autochannel.htm Classification Column System template
part_channelartlist.htm a column system template containing a list of articles
Part_imginfolist.htm templates that are called using the imginfolist tag
Part_imglist.htm templates that are called using the imglist tag
part_type_list.htm system templates for individual columns
Spec_arclist.htm Featured list Articles system templates
Spec_list.htm Featured Templates
Tag_arclist.htm
System templates for tag_fieldlist.htm FieldList

/system/channel Channel Special Bottom Template directory

channel_downlinkpage.htm List link Template
channel_downlinks.htm list templates
Channel_spec_note.htm topic node List template

/include Directory program Core directory

config_base.php the environment definition file. It is used to detect the system environment, define working directory, save database link information, introduce common functions, etc., and recommend not to modify.
config_hand.php the system configuration file. Defines the configuration information that is commonly used by the system, which can be generated directly from background management.
config_passport.php Pass File
config_rglobals.php Detection System External variables
config_rglobals_magic.php Ibid.
Inc_archives_view.php used to browse documents or generate HTML for a document
Inc_arclist_view.php used to browse the channel list or generate HTML for the table of contents
Inc_arcmember_view.php used to browse the documents published by the member
inc_arcpart_view.php templates for parsing and creating global properties, such as channel cover, home page, individual pages, etc.
inc_arcsearch_view.php for Document Search
Inc_arcspec_view.php for browsing all thematic lists or generating HTML for thematic lists
Inc_channel_unit.php user resolution of additional data structure information for a particular channel
inc_channel_unit_functions.php System common Functions Collection
inc_downclass.php random string function for anti-collection
Inc_freelist_view.php used to generate HTML for a specific content list
Inc_functions.php a collection of functions available to the user
inc_imgbt.php Gettypeidselmember
inc_memberlogin.php for user login and access to membership status
inc_photograph.php for processing images in the system, such as watermarks, thumbnails, etc.
inc_photowatermark_config.php image processing Parameter definition
inc_rss_view.php for browsing channel RSS or generating static files for RSS
inc_separate_functions.php spgetarclist function for obtaining a list of documents
inc_sitemap.php for generating site maps
inc_type_tree.php directory tree for selecting columns
inc_type_tree_member.php Ibid, members use
Inc_typelink.php used to display the location of the article and the location of the column
Inc_typeunit_admin.php is used for some complex operations in channel management, mainly used in the background
inc_typeunit_menu.php Ibid.
inc_userlogin.php for Administrator Login
inc_vote.php for managing polls
jump.php for hyperlink jumps
pub_charset.php common character processing function, Gb/utf-8/unicode/big5 and other interchange
Pub_collection.php for collecting
pub_collection_functions.php acquisition function
pub_datalist.php data list for background management
pub_datalist_dm.php Ibid., no template used
pub_db_mysql.php for manipulating databases
pub_dedehtml2.php for HTML parsing in acquisition
pub_dedehtml.php HTML Parser
pub_dedetag.php for Dede template label parsing
pub_httpdown.php for downloading resources in HTTP
pub_oxwindow.php Background Program Extension
Pub_splitword_www.php weaving Dream Segmentation algorithm
validateimg.php Verification Code
vdimgck.php Verification Code

/inc Common Functions Directory

inc_fun_funadmin.php get phonetic codes and other functions
inc_fun_funstring.php HTML code processing and other functions
inc_fun_spgetarclist.php get a list of documents Spgetarclist

root directory
/dede Management Background Directory
/freelist Free Document List generation directory
/html default article Generation directory
/include Program core file directory
/member member Management Directory
/plus plugin and accessibility directory
/setup installation directory
/special Topic Generation Catalog
/templets Default Template Storage directory
/upimg upload download File save directory

/install installation files (must be removed after installation)
BASE.CSS Basic Style Sheet
index.php website Default home page
Robots.txt Search Control files

/templets Template Catalog
/DEDECMSV31 3 Template Catalog
/default Default Template Directory
Article_article.htm General article page template
Article_default.htm General Document page templates
article_flash.htm Flash page Template
Article_image.htm Atlas page templates
Article_soft.htm Software page templates
Article_spec.htm Featured page templates
Index.htm Website Homepage Template
Index_article.htm Article Channel cover template
Index_article_webart1.htm
Index_article_webart2.htm
Index_article_webart.htm
Index_default.htm General Document Cover page template
Index_flash.htm Flash Channel cover template
Index_image.htm Atlas Channel cover page template
Index_soft.htm Software Channel cover template
List_article.htm Article list template
List_default.htm General Document List Catalog template
List_flash.htm Flash Document List template
list_free.htm Free list template
list_image.htm Atlas list template
list_soft.htm Software list template
List_spec.htm Featured List Templates
/img template Picture catalog (with style sheet)


/plus Plugin Template Directory
download_links_templet.htm Download Link Template
Feedback_confirm.htm Comment Confirmation Template
Feedback_templet.htm User Review Template
Feedback_templet_js.htm
Flink-add.htm links to add templates
Flink-list.htm Links list template
Guestbook.htm message This template
Heightsearch.htm Advanced Search Templates
Js.htm
Recommend.htm Recommended friend templates
XML template for rss.htm RSS
Rssmap.htm RSS Subscription File
showphoto.htm Picture Display Template
sitemap.htm Site Map Template
View_msg.htm member Tip Information template
Vote.htm Poll Results Display template


/system System Template Directory
channel_list.htm Column List system template
List_fulllist.htm Document List System template
Mynews.htm Site News System template
Part_arclist.htm article List system template
Part_autochannel.htm Classification Column System template
part_channelartlist.htm a column system template containing a list of articles
Part_imginfolist.htm templates that are called using the imginfolist tag
Part_imglist.htm templates that are called using the imglist tag
part_type_list.htm system templates for individual columns
Spec_arclist.htm Featured list Articles system templates
Spec_list.htm Featured Templates
Tag_arclist.htm
System templates for tag_fieldlist.htm FieldList
/system/channel Channel Special Bottom Template directory
channel_downlinkpage.htm List link Template
channel_downlinks.htm list templates
Channel_spec_note.htm topic node List template

/include Directory program Core directory
config_base.php the environment definition file. It is used to detect the system environment, define working directory, save database link information, introduce common functions, etc., and recommend not to modify.
config_hand.php the system configuration file. Defines the configuration information that is commonly used by the system, which can be generated directly from background management.
config_passport.php Pass File
config_rglobals.php Detection System External variables
config_rglobals_magic.php Ibid.
Inc_archives_view.php used to browse documents or generate HTML for a document
Inc_arclist_view.php used to browse the channel list or generate HTML for the table of contents
Inc_arcmember_view.php used to browse the documents published by the member
inc_arcpart_view.php templates for parsing and creating global properties, such as channel cover, home page, individual pages, etc.
inc_arcsearch_view.php for Document Search
Inc_arcspec_view.php for browsing all thematic lists or generating HTML for thematic lists
Inc_channel_unit.php user resolution of additional data structure information for a particular channel
inc_channel_unit_functions.php System common Functions Collection
inc_downclass.php random string function for anti-collection
Inc_freelist_view.php used to generate HTML for a specific content list
Inc_functions.php a collection of functions available to the user
inc_imgbt.php Gettypeidselmember
inc_memberlogin.php for user login and access to membership status
inc_photograph.php for processing images in the system, such as watermarks, thumbnails, etc.
inc_photowatermark_config.php image processing Parameter definition
inc_rss_view.php for browsing channel RSS or generating static files for RSS
inc_separate_functions.php spgetarclist function for obtaining a list of documents
inc_sitemap.php for generating site maps
inc_type_tree.php directory tree for selecting columns
inc_type_tree_member.php Ibid, members use
Inc_typelink.php used to display the location of the article and the location of the column
Inc_typeunit_admin.php is used for some complex operations in channel management, mainly used in the background
inc_typeunit_menu.php Ibid.
inc_userlogin.php for Administrator Login
inc_vote.php for managing polls
jump.php for hyperlink jumps
pub_charset.php common character processing function, Gb/utf-8/unicode/big5 and other interchange
Pub_collection.php for collecting
pub_collection_functions.php acquisition function
pub_datalist.php data list for background management
pub_datalist_dm.php Ibid., no template used
pub_db_mysql.php for manipulating databases
pub_dedehtml2.php for HTML parsing in acquisition
pub_dedehtml.php HTML Parser
pub_dedetag.php for Dede template label parsing
pub_httpdown.php for downloading resources in HTTP
pub_oxwindow.php Background Program Extension
pub_splitword_www.php Weaving Dream Segmentation algorithm
validateimg.php Verification Code
vdimgck.php Verification Code


/inc Common Functions Directory
inc_fun_funadmin.php get phonetic codes and other functions
inc_fun_funstring.php HTML code processing and other functions
inc_fun_spgetarclist.php get a list of documents Spgetarclist

Module:/group/Circle Module

/ask/Quiz System

/book/Fiction System

Dede Weave Dream CMS folder directory structure

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.