In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you what the usage of the dream weaving dedecms tag {dede:flink /} is, I believe most people do not know much about it, so share this article for your reference. I hope you will learn a lot after reading this article. Let's learn about it together.
Dream weaving dedecms tag {dede:flink /} how to use?
Dream weaving dedecms tag {dede:flink /} usage
First of all, let's take a look at the use of {dede:flink/}, which mainly supports the following properties, type, row, titlelen, linktype, typeid.
1. The type attributes are type='text', type='image' and type='textall'. Type='text' is a plain text link, type='image' is a picture link with logo, and type='textall' is all types.
2. The row attribute is the number of links. The default value is 24. Don't talk too much!
3. The titlelen attribute is the number of words of the link. The default value is 24. The website code GBK is 12 Chinese characters, while the website code UTF-8 is 8 Chinese characters.
4. The linktype attribute is the type of link, which is divided into the home page and the inner page. Linktype='2' is the home page and linktype='1' is the inner page.
5. Typeid attribute is the type of friendship link, which can be viewed in "website Type Management" in "system backend"-"Friendship Link". You can add different categories if you want to call separately.
This is the official method, but some friends want to use the limit attribute, that is, you can control and call the link at will. This is also the problem that e11du encountered in the process of building a station using dedecms recently. The tag {dede:flink/} is modified in / include/taglib/flink.lib.php under the weaving dream root directory, now post the code.
Find: $attlist= "type | textall,row | 24rem titlelen | 24rec linktype | 1jol typeid | 0"
Change it to: $attlist= "type | textall,row | 24meme titlelen | 24meme linktype | 1meme typeid | 0quotient | 0Power10"
Find: $equery = "SELECT * FROM flink $wsql order by sortrank asc limit 0
Change it to: if (! $limit) {$equery = "SELECT * FROM flink $wsql order by sortrank asc limit 0 SELECT * FROM flink $wsql order by sortrank asc limit $limit";} else {$equery = "SELECT * FROM flink $wsql order by sortrank asc limit $limit";}
In fact, it is to add a judgment, the problem solved!
The above is all the content of what is the usage of the Weaving Dream dedecms tag {dede:flink /}. Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more 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.