Weaving Dream (dedecms) home How to call a single page column content

Source: Internet
Author: User

This article from: http://www.chinaz.com/web/2011/1226/228492.shtml

Dedecms is really powerful, but the DEDECMS global variable has a byte limit, so that when we use DEDECMS Production Enterprise station, the home page cannot call large segment of the Enterprise station. In fact, Dedecms has another way of invoking a large section of content, where we need to use SQL statements to invoke the saved HTML content. The general Enterprise station will have a section of the company profile, this column we use {field:content/} This method to invoke the column content, but this field is not available on the home page. In fact, write an SQL statement can implement {field:content/} on the first page of the call: {dede:sql sql= ' Select content from Sh_arctype where id=20 '}[field:content/]{/ Dede:sql} If the profile column ID is 20, you can use the above method to call out all the Enterprise profile. If there is too much content, we can intercept part {dede:sql sql= ' Select content from Sh_arctype where id=20 '}[field:contentfunction= ' cn_substr (' @ Me ',/]{/dede:sql} above means the column with column ID 20 is called, and only 200 bytes is called. The use of this method can be called on the homepage page columns such as Enterprise profile and other column content.

Weaving Dream (dedecms) home How to call a single page column content

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.