织梦联动筛选伪静态(2)

$href = str_replace(array("_".$field_name.".",".","_".$_REQUEST['TotalResult']."_".$_REQUEST['PageNo']),array(".",".",""),$href);

 

$result .= '<a href="'.$href.'">'.$addonfields_items[$i].'</a>';

 

}

else

{

$addonfields_items = explode(",",$ctag->GetAtt('default'));

 

$i = array_search($fieldrow[$fieldsnamef],explode(",",$ctag->GetAtt('default')));

 

$href = stripos($filterarr,$ctag->GetName().'=') ? str_replace("=".$fields_value,"=".urlencode($addonfields_items[$i]),$filterarr) : $filterarr.'&'.$ctag->GetName().'='.urlencode($addonfields_items[$i]);

$href = str_replace("&TotalResult=".$_REQUEST['TotalResult']."&PageNo=".$_REQUEST['PageNo'], "", $href);

 

$result .= '<a title="'.$addonfields_items[$i].'" href="'.$href.'">'.$addonfields_items[$i].'</a>';

}

}

        }

    }

return $result;

}

内容页模板中调用标签

<small>区域:</small>{dede:field.id function=GetFilterUrl(@me,'area')/}

<small>地铁:</small>{dede:field.id function=GetFilterUrl(@me,'subway')/}

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wsfgsw.html