Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the dedecms Link tag flink

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article is to share with you about the use of the dedecms link tag flink. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

How to use the dedecms link tag flink?

The tag flink is used to get links, which can be expressed in pictures or text. Next, we will introduce you with examples. If you are interested, you can refer to it. I hope this example will be helpful to you.

Recommended study: dream weaving cms

DEDEcms's link tag flink is used to obtain links, and its corresponding stage is "includetaglibflink.lib.php".

Picture

The code is as follows:

{dede:flink row='24' type='image' titlelen= "24" typeid= "0"} underlying tag [field:link /] {/ dede:flink}

Words

The code is as follows:

{dede:flink row='24' type='text' titlelen= "24" typeid= "0"} underlying tag [field:link /] {/ dede:flink}

Example

Run the code without shading mode and click to modify the debugging content to copy and print?

The code is as follows:

Apply for a link

< a href="{dede:field name='phpurl'/}/flink.php" title="更多友情链 接" class="kmaore">

{dede:flink row='1000'}-[field:link /] {/ dede:flink} links apply for links {dede:flink row='1000'}-[field:link /] {/ dede:flink}

CSS

The code is as follows:

.flinkdtop {line-height: 30px; background-color: # f5f5f5; height: 30px; border: 1px solid # dfdfdf; padding-right: 20px; padding-left: 20px;} .lt _ centflink {padding: 10px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-color: # dfdfdf; border-left-color: # dfdfdf;}

Remarks:

Row='24' means to read 24. If row is not set, the default is 24.

Titlelen= "24" indicates that the friendship link is in text form, the website name is 24 characters wide, the website code GBK is 12 Chinese characters, and the website code UTF-8 is 8 Chinese characters.

Typeid= "0" 1 Comprehensive website 2 Entertainment 3 Education 4 computer 5 Electronic Commerce 6 online Information 7 Forum 8 other types if typeid= "0" or left empty, read all types

Note: the background code $wsql. = "And typeid ='$typeid'"; therefore, the variable typeid can only use one number, and does not support the format of 1 wsql. = 3 typeid 4. If you want to support this comma interval format, you need to change the includetaglibflink.lib.php file, $wsql. = "And typeid ='$typeid'", and change it to "And typeid in ($typeid)".

Type='image' is [field:link /] in the form of connection + picture.

Type='text' is [field:link /] in the form of connection + text.

Thank you for reading! On the use of dedecms link tag flink to share here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report