Destoon Template Making Concise Tutorial

  • 2021-07-01 06:57:39
  • OfStack

To create a template for Destoon, you first need to understand two concepts of Destoon: template (template) and style (skin). Templates are stored in the system template directory, and styles (pictures of system interface and css files) are stored in the system skin directory, that is, template places page files and skin places style files.

Destoon template manufacturing process:

First of all, copy the original default folder under template and skin folder, and rename it newmoban at the same time, and prepare to modify it into its own template based on the default template file provided by the system.
Then, modify the contents of the file these. name. php under the template and skin folders to add the name of the new template:
In 'default' = > Add 1 line after the 'Default Template' statement: newmoban= > 'New template' and upload it to the website,
Log in to the background management of the website. At this time, you can see that there are two options in "System Settings"-"Website Settings"-"Basic Settings": the default style of the website. The default template of the website has already added one list item: "New Template", which is set to clock style. Make sure to save, and the template and style will be modified.

Here templates and styles can be used together, but styles are debugged by everyone.

How to add templates to the newly added article model of DT?

It is necessary to add an article channel and create a new article model section. By default, the newly created article modules are all the default official silent boards. If you want to change the module under 1 by yourself, if you modify it directly, all the article models will change, so you need to create a new one.

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

There is such a problem here, Sometimes new templates are built, Can be in the drop-down box or only have 1 default template, Without a self-built template, At this time, it is necessary to check the template name and literal name when creating a new one. My name is plan_index, and the results failed to be associated successfully. The template series displayed in template management is plan, which may be the reason here. The solution is very simple. The name is index-plan. The template series is index, and the column type of the first page. When you build it, you must watch the template series, and the list and search page are all the same.


Related articles: