在顶级栏目的category页或者page页放入如下代码:
<?php
if($child){
$child_arrary=explode(',',$arrchildid);
$to_url=$CATEGORYS[$child_arrary[0]][url];
echo "<script>window.location.href='".$to_url."'</script>";
}
?>
如果子栏目是文章模型,则需要有list页
版权声明:若无特殊注明,本文皆为( yueshuo )原创,转载请保留文章出处。