织梦列表页及自由列表调用TAG代码写法,麦站分享下。
TAG标签:
04 | $query = "SELECT tag FROM `xiuzhanwang_taglist` WHERE aid='@me' " ; |
05 | $dsql->Execute( 'tag' ,$query); |
06 | while ($row = $dsql->GetArray( 'tag' )) |
08 | $tags .= "<a href='/tags.php?/" .urlencode($row['tag '])."/' >".$row[ 'tag' ]. "</a> " ; |
|
织梦文章页tag标签调用:
01 | {dede:arclist titlelen= '35' row= '8' typeid= '栏目id' } |
06 | $query = "SELECT tag FROM `xiuzhanwang_taglist` WHERE aid='@me' " ; |
07 | $dsql->Execute( 'tag' ,$query); |
08 | while ($row = $dsql->GetArray( 'tag' )) |
10 | $tags .= "<a href='/tags.php?/" .urlencode($row['tag '])."/' >".$row[ 'tag' ]. "</a> " ; |
|
织梦dede:list 调用TAG:
01 | {dede:list pagesize= '15' } |
03 | <a href= "[field:arcurl/]" title= "[field:title /]" ><img src= "[field:litpic/]" alt= "[field:title /]" /></a> |
04 | <a href= "[field:arcurl/]" title= "[field:title /]" >[field:title /]</a> |
09 | $query = "SELECT tag FROM `xiuzhanwang_taglist` WHERE aid='@me' " ; |
10 | $dsql->Execute( 'tag' ,$query); |
11 | while ($row = $dsql->GetArray( 'tag' )) |
13 | $tags .= "<a href='/tags.php?/" .urlencode($row['tag '])."/' >".$row[ 'tag' ]. "</a> " ; |
|
大功告成。
实现效果展示:
发表评论
评论列表(0条)