Theoretically, dedecms can copy any web page, but the complexity is different. The complexity mentioned here is actually just some repetitive work. As long as the novice webmaster does it seriously, it will not be too difficult to find it. Of course, we still need a certain knowledge reserve. In fact, too many novice webmasters are intimidated by themselves. When it comes to copying web templates, they will immediately shake their heads and say I don't understand php and css. How can I imitate them? In fact, there are almost no requirements for this imitation station. As long as we can understand html and know how dedecms programs call tags, we can start making them. In the process of production, you may encounter one problem or another. At this time, you should make good use of Baidu and remember that he will always be your best teacher.
As mentioned earlier, dedecms calls the tag. There are many online tutorials, and we can also check the help files. Perhaps seeing so many labels at once made many novice webmasters grow old. In fact, in the process of copying templates, there are only a few that can really be used, such as: {dede:arclist} getting the label of the specified article list, {dede:channel} getting the column list page, etc. As long as you know the common ones, you can start work. Each tag will also have some attributes. For example, this sentence is called: {dede:arclist row='6'}, where "row" is an attribute of the tag, indicating how many articles have been called, and the following "6" is the value of this attribute, indicating that six articles have been called this time. Attributes are basically known by their names.
Don't wait until you fully understand all the labels before copying them. This entry method is not bad, but it is too slow. The fastest learning process is doing it by hand. You will encounter all kinds of problems in the process of doing it, and the process of solving problems through hard work is your best and most effective learning process. It may take five days to copy the template for the first time and three days for the second time. In this way, you will find a few uncomplicated stations for imitation practice, and you will feel that "the original imitation station is so much."
The quickest way to copy a template is to compare and imitate it. Comparative imitation is to compare the default templates of dedecms to imitate. For example, the title of the website is displayed between the title /title of the homepage of the website we want to imitate, but in the default template it is {dede:global.cfg_webname/}. We just need to copy the content of this label, overwrite the original content, and don't even need to know what this label means. As long as the functions are the same, this method can be solved by moving the mouse.
When copying a template, we should pay attention to two problems: one is the path of the material. The paths of downloaded webpages are all normal, but when we put webpages into our website directory, there may be abnormal calls, because the change of paths may cause some styles and materials to be unreadable. At this time, you need to modify the path. It is recommended to use an absolute path starting from the root directory of the website, that is, a path in the form of "/templates/default/style/dedecms.css"; The second is the coding problem. Make sure that the copied template has the same code as the dedecms you installed, otherwise the generated web page will be a mess. To solve this problem, you can use transcoding software or some tools provided by the website.
Copying a web page template is not as difficult as we thought. It's easy to get started as long as you spend some time learning. The key is not to be intimidated by ideology. Copying a web page template is not too much technical work, and it is more like manual work in many cases. General investment 10 days will make your future templates worry-free.