最开始在安装完dasBlog后发现他竟然没有二级分类,后面访问了几个dasBlog的网站发现它们都可以二级甚至三级分类,心想难道要修改源代码?
马上跑到dasBlog的官方网站上查找相关的信息,经过2个小时的查找基本上快把他网站的东西翻个遍(我英文一般,阅读速度慢)才在FAQ里看到相关信息。
Question: I want to use nested categories and set them up. But somehow, they are not rendered in the category area within the navigation bar. What's wrong?
A. To get them all displayed, each category must contain at least one post.
So if you have a nested category named Financial|News, both should
contain one post. That means: you also need a category named only Financial with
one post in addition to Financial|News with one post. It might be
preferable to add Financial and Financial|News to
your entries so that they show up under the Financial category view
as well as the Financial|News category view. However, since many
RSS Aggregators only display the first category in their UI, this may not have the
desired result (example: RSSBandit would
only display Financial, and not Financial and Financial|News.
方法就是: 你在你想分的二级目录后面加上 “ | ”
比如:我的分类: 一级分类:“编程”- 二级分类 “ASP.net ”可以在分类添加里这样填写" 编程 | ASP.NET "
同理可以无限级分下去。这也许就是XML的好处吧。呵呵..... :)
This weblog is Power by Maxer.CN(刘翔).
文章来源:http://www.maxer.cn/blog/PermaLink,guid,b62b136b-49d0-4f89-b40b-6653511a6961.aspx
浙公网安备 33010602011771号