闭于什么是面包屑导航尔想诸位童鞋都该当格外的领会了吧此地尔便不再报告了;先贴二段官方WIKI给的代码瞅下:
页面估计 // *估计首页* / {if $ type =='category'} / *估计分类页* / {if $ type =='article'} // *估计日记 页排除独力页面sim卡pin码是什么 sim卡pin码排除独力页面{if $ article.Type == ZC_POST_TYPE_ARTICLE}(另一本书)* / {if $ type =='page'} // *估计独力页面* / {if $ type =='author' } // *估计用户页* / {if $ type =='date'}} // *估计日期页* / {if $ type =='tag'} // *估计标签页* /
分类目录面包屑的代码编写
{php} $ html ='';函数navcate($ id){global $ html; $ cate ==新类别; $ cate-> LoadInfoByID($ id); $ html ='>> '.. $ cate-> Url导航。'“ title =”察瞅.. $ cate->名称制作教程。''中的理想文章“>'.. $ cate->名称面包。''细的。$ html; if((($ cate-> ParentID)> 0){navcate($ cate-> ParentID);}} navcate($ article-> Category-> ID); global $ html; echo $ html; {/ php}
上头这二段代码是官方wiki的咱们只要共同下以上的代码稍干建改便不妨碍了底下咱们来瞅下烽火博客模板运用的面包屑导航代码 :
{if $ type =='index'} > i>网站改版调试中!{elseif $ type =='category'} > i> 将上头的代码增添到你想要表露的场合便行了实际上普遍在导航栏下方香河县网站优化实际上普遍在导航栏下方效验不妨碍参照本博客。{超详细的ZBlog面包屑导航制作教程!}超详细的ZBlog面包屑导航制作教程!
'” title =“察瞅.. $ cate->名称'中的理想文章”>'。$ cate->名称。''。$ html; if((($ cate-> ParentID)> 0){navcate($ cate-> ParentID);}} navcate($ article-> Category-> ID); global $ html; echo $ html; {/ php}» 正文{elseif $ type =“ =” page“} i> 首页» 正文{elseif $ type ==“ tag”} i> 首页» 标签存档:{$ tag.Name} span> {elseif $ type ==“ author”} > i> 首页» > {$ author.Name}的文章 span> {/ if}