Destoon template creation concise tutorial _ PHP Tutorial

Source: Internet
Author: User
Destoon template creation concise tutorial. For a Destoon template, you must first understand the two concepts of Destoon: template and skin ). The template is stored in the system template directory and the style (for the Destoon template, you must first understand the two Destoon concepts: Template(Template) and Style(Skin ). The template is stored in the system template directory, and the style (images and css files on the System Interface) is stored in the system skin Directory. that is to say, the template is placed in the page file, and the skin is placed in the style file.

Destoon template creation process:

First, copy the original default folders under the template and skin folders and change the name to newmoban. you are prepared to modify the default template file to your own template.
Then, modify the these. name. php file in the template and skin folders and add the name of the new template:
Add a line after the 'default' => 'default template' statement: newmoban => 'New template' and upload it to the website,
Log on to the website background management. you can see two options in "system settings"-"website settings"-"basic settings: the default website style and default website template have an additional list item: "New template", set it to the clock style, and click Save. the template and style are modified.

Here, templates and styles can be used together, but style debugging is acceptable.

How to add a template to the new article model of DT?

You need to add an article channel and create a forum for the article Model. by default, all the newly created article modules are the default official built-in moji. if you want to change the module, all article models are changed, and new articles need to be created.

In the background, open the function module, create the article model-module settings, click Create, enter the new name and text name, and click OK. Then, return to the module settings and associate it in the drop-down box.

There is such a problem: sometimes a new template is created, but there is only one default template in the drop-down box, and there is no self-created template, in this case, we need to check the template name and text name when creating the template. my name is "plan_index" and the result is not associated successfully. the template series shown in template management is "plan, it may be the reason here. the solution is very simple. it can be named index-plan. the template series are index and the column type of the homepage. you must be optimistic about the template series during creation, both list and search pages share the same principle.

Templates and skin ). The template is stored in the system template directory. The style is shown in the figure on the system interface...

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.