Learn dedecms a period of time, the introduction of my experience and share with you.
What is DEDECM
CMS (Content management System): There are now a variety of content models, such as book reviews (including titles, publishers, comments, and other fields). CMS generally have users backstage, the user can publish in the background and share their own information, such as book reviews, and increase the deletion. CMS is such a website that provides publishing, sharing and modification.
is a product: The word is different from the framework, the framework is similar development in the same place, is used to speed up the development of the progress of the developers to retain more freedom, and product description dedecms do not need to do too much development, dedecms most of the functions have been done, Users can use it just by modifying and configuring it. Can analogy Discuz, it is also a product, a forum system.
How to use Dedecms? the answer to the question depends on the goal of Dedecms.
1 will not do website, but want to have a website. At this time generally download a similar to the requirements of the site template (style), through the background manager to create columns, modify the keywords (such as the company name), you can have a website. I think that doing this out of the website will not be too good.
2 will be a little bit of technology, as modified on the basis of DEDECMS, to complete the project, I think this is very suitable for the beginning of the new Web site novice.
Understand a little html,js,css, but not the schema site. Now consider to write a QQ space, the specific function of the dream has been written, you want to use JS and CSS to improve the user interface, write a space dress up, this is what you have to do is to write Web Templates . DEDECMS provides convenient access to data via Dede tags (similar to HTML tags). That is, to write a website, only need to write out a HTML page, for which to match the JS and CSS on the line, as if writing static Web pages, but there are dynamic features. But Dedecms does not simplify the process of writing JS and CSS, in general Web pages to write JS and CSS methods can also be applied to the framework of dedecms, that is, from other places to download JS and CSS files can easily put into dedecms.
DEDECMS provides the label function is not enough, you want to use the label package function--expansion of the label, you can also write some plug-ins, it is necessary to write PHP files. But do not be afraid, you can imitate the system to bring files.
3 want to quickly drive out a website project, Dedecms Online also has a lot of templates, plugins for download. But the premise is to understand Html,css,js and PHP, and more familiar with the internal structure of DEDECMS.
4dedecms is a good example of the site architecture, for a just learned PHP syntax fresher, still do not know how to use these syntax to make a website, can see a complete code organization, is a good way to get started. Some of the mechanisms inside such as caching are worth thinking about and learning, but this is a bit deep, slowly come on ~ ~
A journey begins with a journey. The above-mentioned things to be gradual, the following is the beginning of learning dedecms what to do (basically the second step of the matter).
Knowledge Reserve
1html, if the front-end, but also CSS and JS, the backstage will be php,mysql. These are always to be learned.
2 If you want to do the third step, you can find a book to learn Smarty template, many PHP textbooks have a chapter on Smarty template. Through books, can better understand the concept of the template, learning Dedecms will not be so painful.
Start Contacting Dedecms
1 Download the default template from the official website, install it. Install a data experience package so that debugging data is only possible.
2 playing with the front desk, more important is the default site backstage. Found not programming can also create columns, understand the role of each folder, while surfing the internet to check the term.
You may encounter some difficult nouns when using the background, here are some explanations for review, and there is no need to remember them now:
). DEDECMS has customized many labels, such as {Dede:global name=cfg_webname/}
Underlying template (InnerText): For multiple records of the template output, the user (or developer) manually to specify the style of a single record. Is the innertext in the block tag, using [Field:name].
Default underlying template: those in the Templets/system, one that is placed by default in the corresponding block-level label in the underlying template. The default call is to not write anything inside a block-level tag.
Namespace: The first token in the tag, such as the Dede in {dede:var.name}.
Page Templates/templates: An HTM file that has a specific HTML framework that invokes tags to populate specific data. such as the HTM file in Templets.
Column (type): First level navigation, class two navigation, a column may have many articles and pictures and so on.
Channel: Channel refers to different column types. such as the article model, software model, Atlas model, video model, flash model and so on. The official definition is: Channel refers to the content model, the site's columns are based on different models of the establishment. For example, cartoons and landscapes can be produced by the picture channel.
The difference between templates, plugins and modules: Templates are HTML in templets, which specifies the display of articles, covers, and so on, a bit similar to the background. Plug-ins are a collection of small, actual programs, such as the vote (voting) plugin, which can be easily installed and deleted, although installation and removal only remove the database's index records, not for real installation and removal. module and function The word is corresponding, plug-ins and the basic code is done by the scattered functions, and a block can be relatively autonomous to complete a set of related functions, such as the group module.
View class: The view class is a class that contains a compile/Parse engine object that encapsulates the compile/Parse engine object as a view and expands the new features.
Generated: Tagged htm pages and php files are interpreted to generate static HTML text, stored in (root)/A.
Collection: Transfer information on other people's Web sites to their own websites for useful articles. DEDECMS has its own collector.
You can then start learning dede tag syntax, as long as you write the Dede tag in an HTML document, you can easily access the database
You can read this article
Recommend several manuals and some community
1 weaving Dream CMS Template production manual
2 official Website Help Center
3DEDECMS User Manual
4dedecms Article Community
5 Webmaster Encyclopedia
The process of learning can be at their own level, to understand the site of the organization of the folders, as well as the database corresponding to the site.
A quick way to test page templates (HTML files with Dede tags)
Change to the desired template near Settemplet in the root directory/index.php. Such as
$PV->settemplet//($cfg _basedir. $cfg _templets_dir. "/" . $row [' Templet ']);
(DirName (__file__). "/templets/default/myhtml.htm");
(Be careful to save the original path in case you want to restore)
About Dedecms You can also take a look at these articles:
1
(go) Dedecms Getting Started