In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the method of weaving dream home page to call the specified column content, the article is very detailed, has a certain reference value, interested friends must read it!
Dream weaving home page how to call the specified column content?
We know that Dedecms is easy to develop, but the global variable of dedecms has byte restrictions, which makes it impossible for us to call large chunks of content on the home page through tags, especially the contents of html tags, but dedecms has another way to call chunks of content, that is to call saved html content through sql statements.
For example, the general corporate website will have a corporate profile column, most of which we use the {field:content /} tag to call the column content in the column settings, but this field is not available on the home page.
In fact, you can call the column content on the home page by writing a sql statement:
{dede:sql sql='Select content from dede_arctype where id=2'} [field:content /] {/ dede:sql}
Pay attention to manually modifying the data prefix dede_
If the ID of the introduction column is 2, you can use the above method to call out all the enterprise profiles.
If you think there is too much content, we can intercept some of it. The specific sql statement is as follows:
{dede:sql sql='Select content from dede_arctype where id=2'} [field:contentfunction= "cn_substr ('@ me',200)" /] {/ dede:sql} above are all the contents of the method of calling the specified column content on the home page of dream weaving. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.