Home > CMS Tutorial > DEDECMS > body text

How to use the dedecms tag {dede:flink /}

藏色散人
Release: 2019-12-26 09:10:40
Original
2098 people have browsed it

How to use the dedecms tag {dede:flink /}

How to use the dedecms tag of {dede:flink /}?

dedecms tag of the dreamweaver {dede:flink /} Usage

First of all, let’s understand the use of {dede:flink/}. It mainly supports the following attributes, type, row, titlelen, linktype, and typeid.

Recommended learning: 梦Weavercms

1. The type attribute is type=’text’, type=’image’ and type=’textall’. type=’text’ is a plain text link, type=’image’ is an image link with a logo, and type=’textall’ is all types.

2. The row attribute is the number of friendly links. The default value is 24. No more discussion!

3. The titlelen attribute is the number of words in the friendly link. The default value is 24. The website encoding GBK is 12 Chinese characters, and the website encoding UTF-8 is 8 Chinese characters.

4. The linktype attribute is the type of friendly link, which is divided into home page and inner page. linktype=’2′ is the homepage, linktype=’1′ is the inner page.

5. The typeid attribute is the type of friendly link, which can be viewed in the "Website Type Management" in the system background [Module]-[Friendly Links]. If you want to call them separately, you can add different categories.

This is the official method, but some friends want to use the limit attribute, which means they can control the call of friendly links at will. This is also a problem e11du encountered recently when using dedecms to build a website. {dede:flink/}The modification place of this tag is /include/taglib/flink.lib.php in the root directory of DreamWeaver. Now post the code.

Found: $attlist="type|textall,row|24,titlelen|24,linktype|1,typeid|0″;

Change to: $attlist="type|textall, row|24,titlelen|24,linktype|1,typeid|0,limit|0,10″;

Found: $equery = “SELECT * FROM flink $wsql order by sortrank asc limit 0,$totalrow ";

Change to: if(!$limit){ $equery = "SELECT * FROM flink $wsql order by sortrank asc limit 0,$totalrow"; }else{ $equery = "SELECT * FROM flink $wsql order by sortrank asc limit $limit”; }

In fact, it just adds a judgment and the problem is solved!

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template