How to design a common Web site template

Source: Internet
Author: User
Tags constant

Web sites are now available on the Web with templates developed. The use of templates to develop a Web site has many advantages, the most important is the template and the program completely out of the user can according to the provisions of the label arbitrary development template, imported into the template engine can be normal operation. So the artist and the program writer are completely independent. Improve the efficiency of the development site, the reuse of the program to play incisively and vividly.

Intelligent building Station system, crash site, self-service construction station system, can only type to do the website, and so on advertising words we are no longer unfamiliar, all of these are nothing more than a template to make a fuss. It is precisely because such systems are becoming more and more popular, for enterprises or individual users who are not high in demand, have a website that is entirely their own, with ready-made templates than to find network companies to save more money. Cost-performance is much higher, so at present the small and medium network company's survival problem worrying.

discuz! Forum, you webmaster should be very familiar with, but do corporate websites, independent Shopping network system, the domestic do a relatively good number of companies, presumably we may not be familiar with: ShopEx, shopping System (SHOPXG), Hishop, Signals Network (mynet.cn) and so on, Everyone has the opportunity to visit their website to see their advantages.

Let's explain how to develop the site template in detail below.

The sections that involve templates can be divided into the following chunks: Custom tags, template files, data controls, template engines

1. Custom Label custom labels are the basis for interaction between template files and the template engine, or they can be said to be protocols. At present, the popular label style on the network is: {$****} {#*****#}, this method is mainly to differentiate script tags such as HTML. The content area of the label can be set to a variety of properties. For example, len=100 indicates that the data length is no more than 100 bytes. Label variables according to different types, we can specify the name as follows:

{$var _**} variable label indicating that the data source of this label is the value of a field

{$const _**} constant label, which indicates that the label is a constant data, such as the current date, etc.

{$temp _small} small template data. (What is small template, we explain in detail later)

{$page _**} pagination data. For example, the first page, prev, next page, such as the Code section. Wait a minute.

For example: {$var _news_title len=30} indicates the title of the news, if the news headline has more than 30 words, then intercept.

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.