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.