Dedecms links by Category site type method of invocation

Source: Internet
Author: User
Tags tag name

About Dedecms Links according to the classification of the site type of the problem, many grassroots webmaster in the Dream Forum to ask, recently fire network according to this site need happen to encounter this problem, write a tutorial to tell everyone is how realistic, demonstration please see the Fire net home end of the link classification (in the form of sliding door display).

First of all, let's introduce the label of DEDECMS links Category:

Tag name: Flink
Introduction to Tags:
Function Description: Used to get links
Scope of application: global use
Basic syntax:
{dede:flink row= ' 24 '/}
Parameter description:
Type= ' image ' or textall, image link, text text link;
row= ' 24 ' link number
Titlelen= ' 24 ' site text length
Linktype= ' 1 ' Link location (home, inner page)
Typeid= ' 0 ' All types can be viewed in the System backend [module]-[links] in "Site type management".

Look at the above comments, we understand, how to call, to liehuo.net for example, the link has a link between the homepage and the inside, there are pictures and text links, links to the same industry and other industry sites links, first look at the Fire Network call code:

<!--sliding door js file--
<script type=text/javascript>
function g (o) {return document.getElementById (o);}
function Hovertab (num,counts,tabname,tabclass) {
for (i=1;i<=counts;i++) {
G (tabname+ ' link ' +i). classname=tabclass+ ' tabs ';
G (tabname+ ' con ' +i). style.display= ' None ';
}
G (tabname+ ' link ' +num). classname=tabclass+ ' Tabs_act ';
G (tabname+ ' con ' +num). style.display= ' block ';
} </SCRIPT>
<!--//Sliding door JS file--
<div class= "HD" >
</div>
<div id= "Liehuo_con1" >
<ul class= "CLS" >
{dede:flink row= ' 9 ' linktype= ' 2 ' typeid= ' 1 ' type= ' image '/}
</ul>
<p>
{dede:flink linktype= ' 2 ' type= ' text ' typeid= ' 1 ' row= ' 30 '} [Field:link/] {/dede:flink}
</p>
</div>
<div id= "Liehuo_con2" style= "Display:none" >
<ul class= "CLS" >
{dede:flink row= ' 9 ' linktype= ' 2 ' typeid= ' 2 ' type= ' image '/}
</ul>
<p>{dede:flink linktype= ' 2 ' type= ' text ' typeid= ' 2 ' row= ' '}[field:link/]{/dede:flink}</p> '
</div>
</div>

In the above code, we see four colors, each to explain:

1. Brown: For the image link, the limit type is 1 (Peer-class site), a total of 9 calls.
2. Green: For the text link, the limit type is 1 (Peer-class site), a total of 30 calls.
3. Red: For the picture link, the restriction type is 2 (other industry website), altogether calls 9.
4. Blue: For the text link, the restriction type is 2 (other industry website), altogether calls 30 article.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.