How to quickly use a Dedecms clone template by a novice webmaster

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

In the webmaster this circle, Dedecms is everyone more familiar with a website program, dedecms to powerful and SEO friendly by many webmaster's favor. Novice Webmaster Use this program to build a station is also very easy thing, but look at other sites so beautiful page, and look at their own use of the default template, always some disappointed feeling. In fact, for a novice webmaster, you can also through their own efforts to imitate the Web page as its own template.

Theoretically for any Web page, Dedecms can be copied, but the complexity is different, the complexity of the said here is actually just a duplication of work. Novice webmaster As long as careful to do, found not too difficult, of course, a certain knowledge reserve or need. In fact, too many novice webmaster is intimidated by their own, a copy of the Web template, immediately will shake his head said I do not understand PHP, do not know how to copy the CSS. In fact, The imitation station on this almost no request, as long as we can read HTML, and know how the DEDECMS program is called on the label, you can start making. In the process of making, you may encounter such or such a problem, this time you should use good "Baidu", to remember that he will always be your best teacher.

As mentioned earlier, there are a lot of tutorials on the web, and we can view the Help files Dedecms. Perhaps all of a sudden see so many labels, a lot of novice stationmaster's head is big. In fact, in our imitation template process, really can use only a few, such as: {dede:arclist} get the specified article List label, {dede:channel} Get column list page, etc. We just have to figure out the usual few, we can do it. There are also some attributes in each label, such as this sentence call: {dede:arclist row= ' 6}, where the "row" is the label of a property, is called the meaning of the number of articles, and the following "6" is the value of this property, is this call 6 article. Attributes are basically known and justified.

Do not wait until all the labels are done to the same way to copy, this approach is not to say bad, but too slow. The fastest learning process is to do, do the process you will encounter a variety of problems, and through efforts to constantly solve the problem of the process, is your best and most effective learning process. The first time you copy a template may take 5 days, when you second time maybe only 3 days, so the continuous search for a few less complex station for imitation exercises, you will feel "the original imitation station just so."

The quickest way to imitate a template is to contrast it. Contrast is compared to the dedecms of the default template to imitate, such as we want to clone the site home page between the display is the title of this site, and the default template in this pair of tags is {dede:global.cfg_webname/}, we just copy the contents of this label to the past, It's OK to cover the original content without even knowing what the label means. As long as the function of the same place we can use the mouse can be used to solve the method.

Cloning templates should focus on two issues: one is the problem of the path of the material, we download the Web page path is normal, but when we put the page into our site directory may produce call exception, because the path changes may lead to the inability to read some styles and materials. This time we are going to modify the path, we recommend using the site root directory as the starting path of the absolute path, that is, such as "/templets/default/style/dedecms.css" path; Be sure to do imitation good template coding and you install the DEDECMS code consistent, otherwise, the generated page is a garbled. To solve this problem, use the code conversion software or some tools website to provide the coding conversion tool.

Imitation Web templates are not as difficult as we are, as long as we take the time to learn, it is easy to get started, the key is that the mind can not be intimidated. Cloning a web Template is not too much of a technical job, often more like physical work. The general situation put in 10 days time, will let you later template worry-free.

The above content by http://www.sunnygps.cn original, A5 starting, please reprint to retain the link, greatly appreciated.

Related Article

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.