在頂級欄目的category頁放入如下代碼:
<?php if($child){ $child_arrary=explode(',',$arrchildid); $to_url=$CATEGORYS[$child_arrary[0]][url]; echo "<script>window.location.href='".$to_url."'</script>"; }?>
如果子欄目是文章模型,則需要有list頁
在頂級欄目的category頁放入如下代碼:
<?php if($child){ $child_arrary=explode(',',$arrchildid); $to_url=$CATEGORYS[$child_arrary[0]][url]; echo "<script>window.location.href='".$to_url."'</script>"; }?>
如果子欄目是文章模型,則需要有list頁