{dede:type typeid='12'}<div><a href="[field:typelink/]"><img src="[field:typeimg /]" alt="" /></a></div><div class="pcknr"><h3>[field:typename /]</h3><div class="pckwz"><p>[field:description/]</p></div></div>{/dede:type}方法1:打开include/taglib/type.lib.php。
找到里面的SQL语句,原来sql检索的字段中没有description,添加description字段后为SELECT id,typename,typedir,description,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath FROM `dede_arctype` WHERE id=’$typeid’ “ 然后{dede:type typeid='1'}[field:description/]{/dede:type}这样调用就可以显示了。方法2:用SQL语句直接调用{dede:sql sql='Select description from dede_arctype where id=2'} [field:description/]{/dede:sql}