要的效果:
当前所在位置:
您当前所在位置:首页>>产品>>蒲公英系列>>服装管理系统>>产品详情
但放入调用标签:
您当前所在位置:<a href="https://tool.4xseo.com/article/1933.html">首页</a>>>{catpos($r['catid'])}产品详情
得到的效果是:
首页>>产品蒲公英系列>>服装管理系统>>产品详情
少了>>
汗,看了下global.func.php文件发现这段:
function catpos($catid, $urlrule = '')
{
global $CATEGORY;
if(!isset($CATEGORY[$catid])) return '';
$pos = '';
$arrparentid = array_filter(explode(',', $CATEGORY[$catid]['arrparentid'].','.$catid));
foreach($arrparentid as $catid)
{
if($urlrule) eval("\$url = \"$urlrule\";");
else $url = $CATEGORY[$catid]['url'];
$pos .= '<a href="https://tool.4xseo.com/article/1933.html'.$url.'">'.$CATEGORY[$catid]['catname'].'</a>'.'>>';
}
return $pos;
}
红色部分以前是没有的!加上去后,得以实现想要的效果!
PHPCMS2008的导航位置修改
免责声明:文章转载自《PHPCMS2008的导航位置修改》仅用于学习参考。如对内容有疑问,请及时联系本站处理。
上篇github 在ubuntu 使用--使用PHP 扩展库下篇
宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=