How to create a Destoon template? Destoon template creation tutorial

Source: Internet
Author: User
How to create a Destoon template? Destoon template creation tutorial
This article describes how to create a Destoon template. For a concise tutorial on how to create a destoon template, copy the original default folder under the template and skin folder and change it to newmoban, modify the default template file to your own template.

Destoon template creation 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 (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.

I. Destoon template creation process: first, copy the original default folders under the template and skin folders and change them to newmoban, modify the default template file to your own template.

Then, modify the these file in the template and skin folders. name. add the name of the new template to the php content: add a line after the 'default' => 'default template' statement: newmoban => 'New template', and then 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.

2. 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, this may be the reason. 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.

Recommended: destoon getting started tutorials and tips

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.