search
HomeCMS TutorialDEDECMSHow to use dedecms friendly link tag flink

How to use dedecms friendly link tag flink

dedecmsHow to use the friendly link tag flink?

The tag flink is used to obtain friendly links. The expression can be pictures or text. Next, I will introduce it to you with an example. If you are interested, you can refer to it. I hope the knowledge points in this example will be useful to you. Helpful

Recommended study: 梦Weavercms

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

Picture

The code is as follows:

{dede:flink row='24' type='image' titlelen="24" typeid="0"} 
底层标签 [field:link /] 
{/dede:flink}

Text

The code is as follows:

{dede:flink row='24' type='text' titlelen="24" typeid="0"} 
底层标签 [field:link /] 
{/dede:flink}

Instance

Run Code without coloring mode, click to modify the debugging content, copy and print?

The code is as follows:

<div class="flinkdtop"& gt; <span class="left clan"> <strong>友情链接</strong>< /span> <span class="left"><a href="{dede:field name=&#39;phpurl&#39; /}/flink_add.php" title="申请友情链接">申请友情链接</a></span> < a href="{dede:field name=&#39;phpurl&#39;/}/flink.php" title="更多友情链 接" class="kmaore"></a> </div> 
<div class="lt_centflink"> {dede:flink row=&#39;1000&#39;} 
- [field:link /] 
{/dede:flink} 
</div> 
<div class="flinkdtop"> <span class="left clan"> <strong>友情链接</strong></span> <span class="left"><a href="{dede:field name=&#39;phpurl&#39;/}/flink_add.php" title="申请友情链接">申请友情链接</a></span> <a href="{dede:field name=&#39;phpurl&#39;/}/flink.php" title="更多友情链接" class="kmaore"></a> </div> 
<div class="lt_centflink"> {dede:flink row=&#39;1000&#39;} 
- [field:link /] 
{/dede:flink} 
</div>

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-bottom-color: #dfdfdf; 
border-left-color: #dfdfdf; 
}

Remarks:

row='24' means reading 24, if row is not set, the default is 24,

titlelen="24" means the friendly link is in text form, the website name is 24 characters wide, the website If the encoding is GBK, it will have 12 Chinese characters. If the website encoding is UTF-8, it will have 8 Chinese characters.

typeid="0" 1 Comprehensive website 2 Entertainment 3 Education 4 Computer 5 E-commerce 6 Online information 7 Forum Category 8 Other types If typeid="0" or not filled in, all types will be read.

Note: Backend code $wsql .= "And typeid = '$typeid'"; Therefore, the variable typeid only You can use a number, but the format of 1, 2, 3, and 4 is not supported. If you want to support the comma-separated format of 1, 2, 3, and 4, you need to modify the includetaglibflink.lib.php file, $wsql .= " And typeid = '$typeid'"; Change to $wsql .= "And typeid in ($typeid)";

type='image' then [field:link /] is in the form of connecting images,

type='text' then [field:link /] is in the form of connected text,

The above is the detailed content of How to use dedecms friendly link tag flink. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)