大家好,又見面了,我是你們的朋友全棧君。
{dede:channel type=’son’ row=’8′ currentstyle=”
~typename~ “}
[field:typename/]
{/dede:channel}
這種調用方式currentstyle有效
但是設定typeid:
{dede:channel type=’son’ row=’8′ typeid=1 currentstyle=”
~typename~ “}
[field:typename/]
{/dede:channel}
這種調用方式currentstyle就無效了
完美解決辦法:
修改include/taglib/channel.lib.php
查找:
if( ($row[‘id’]==$typeid || ($topid==$row[‘id’] && $type==’top’) ) && $currentstyle!=” )
改成
if( ( $row[‘id’]== $refObj->TypeLink->TypeInfos[‘id’] || ($topid==$row[‘id’] && $type==’top’) ) && $currentstyle!=” )
釋出者:全棧程式員棧長,轉載請注明出處:https://javaforall.cn/127211.html原文連結:https://javaforall.cn