打开/include/taglib/tag.lib.php文件 找到 if($getall==0 isset($refObj-Fields[tags]) !empty($refObj-Fields[aid])){ $dsql-SetQuery(Select tid From `dede_taglist` where aid = {$refObj-Fields[aid]} ); $dsql-Execute(); $ids = ; while($row =...
打开/include/taglib/tag.lib.php文件
找到
if($getall==0 && isset($refObj->Fields['tags']) && !empty($refObj->Fields['aid']))
{
$dsql->SetQuery("Select tid From `dede_taglist` where aid = '{$refObj->Fields['aid']}' ");
$dsql->Execute();
$ids = '';
while($row = $dsql->GetArray())
{
$ids .= ( $ids=='' ? $row['tid'] : ','.$row['tid'] );
}
if($ids != '')
{
$addsql = " where id in($ids) ";
}
if($addsql=='') return '';
}
|
在它下面加入
else if($getall==2)
{
$addsql = " where typeid='{$refObj->Fields['typeid']}' ";
}
|
前端调用
Pbootcms问题解决
请点击在线联系我们【点击咨询解决问题】 如果您有任何Pbootcms问题,我们将免费为您写解决教程!