1、当前tag的所有相关字段数组名:$navinfor,可以用 <?=$navinfor[字段名]?>获取相关值
tagid: <?=$navinfor[tagid]?> tag名: <?=$navinfor[tagname]?> 信息数: <?=$navinfor[num]?> 推荐等级: <?=$navinfor[isgood]?> tag分类id: <?=$navinfor[cid]?> tag网页标题: <?=$navinfor[tagtitle]?> tag网页关键词: <?=$navinfor[tagkey]?> tag网页描述: <?=$navinfor[tagdes]?> 最后修改时间(时间戳): <?=$navinfor[fclast]?> 设置的tag模板id: <?=$navinfor[tempid]?> tag拼音: <?=$navinfor[py]?> tag图片: <?=$navinfor[tagpic]?> tag单页内容: <?=$navinfor[tagtext]?> tag链接: <?=$navinfor[tagurl]?> |
2、上一个TAG
[e:loop={"select * from {$dbtbpre}enewstags where tagid<$navinfor[tagid] order by tagid desc limit 1",0,24,0}] <a href=" <?=dp_itagLink($bqr[tagid])?>" target="_blank"> <?=$bqr['tagname']?></a> [/e:loop] |
3、下一个TAG
[e:loop={"select * from {$dbtbpre}enewstags where tagid>$navinfor[tagid] order by tagid limit 1",0,24,0}] <a href=" <?=dp_itagLink($bqr[tagid])?>" target="_blank"> <?=$bqr['tagname']?></a> [/e:loop] |
4、同分类下的其它TAG 10个,没有分类id时返回空
<?php if($navinfor['cid']){ ?> [e:loop={"select * from {$dbtbpre}enewstags where cid=$navinfor[cid] and tagid!=$navinfor[tagid] order by tagid limit 10",0,24,0}] <a href=" <?=dp_itagLink($bqr[tagid])?>" target="_blank"> <?=$bqr['tagname']?></a> [/e:loop] <?}?> |