|
Rank: Newbie Groups: Registered
Joined: 2/5/2010(UTC) Posts: 5 Location: Xiamen
|
我运行SmallBusiness的范例站点,发现新闻和产品类别都是只有一级的,如果我要做成多级目录,请问如何实现?谢谢!
|
|
|
|
|
|
|
Rank: Administration Groups: Administrators, Registered
Joined: 9/3/2009(UTC) Posts: 1,555 Location: Xiamen China
|
你所指的多级目录是指? Regards, Jifeng Huang
Kooboo Team
Microsoft ASP.NET MVP
|
|
|
|
|
|
|
Rank: Administration Groups: Administrators, Registered
Joined: 9/3/2009(UTC) Posts: 1,555 Location: Xiamen China
|
是不是说,内容目录的分级呢?你可以创建一个空目录(不选Schema),然后就可以创建创建子目录了。 Regards, Jifeng Huang
Kooboo Team
Microsoft ASP.NET MVP
|
|
|
|
|
|
|
Rank: Administration Groups: Registered, Administrators
Joined: 9/2/2009(UTC) Posts: 695 Location: xiamen
|
crazydogs, 你可以做多级目录。 多级目录通常是用自已关联自己来实现的, 你可以建一个category, 建完后再设category schema 为自己, 这样你就实现了多级上级。 小心这边有此人可能有一个bug http://forum.kooboo.com/...itialized.aspx#post1095
Regards,
Vincent
Kooboo Team
|
|
|
|
|
|
|
Rank: Newbie Groups: Registered
Joined: 2/5/2010(UTC) Posts: 5 Location: Xiamen
|
首先感谢您的回复,我想是我没把问题描述清楚:
请打开SmallBusiness的新闻页面,左边的有"Other News“几个新闻类别,我现在想的是,是否可以在Other News下再增加子新闻类别?如果可以,我在LeftSideBars的内容模板里如何递归的取出每一层的子类别(比如Other News>Domestic News>Social News....可能是无限多级的)。
目前我做到的地步是可以在Other News的Schema里添加子类型且其Schema类型是NewsCategory,这已经实现了,但是我现在不知道怎么递归的读出一个NewsCategory下的子Category孙Category...
期待您的回复,万分感谢!
|
|
|
|
|
|
|
Rank: Administration Groups: Administrators, Registered
Joined: 9/3/2009(UTC) Posts: 1,555 Location: Xiamen China
|
你可以用类别引用自己的方式来实现这个功能,然后前台自然是用户GetContentsByCategory来取无限级类别了。 Regards, Jifeng Huang
Kooboo Team
Microsoft ASP.NET MVP
|
|
|
|
|
|
|
Rank: Newbie Groups: Registered
Joined: 2/5/2010(UTC) Posts: 5 Location: Xiamen
|
jifeng wrote:你可以用类别引用自己的方式来实现这个功能,然后前台自然是用户GetContentsByCategory来取无限级类别了。 大体上了解,但是不晓得如何操作,站点登录信息已经发给您了,能否给示范操作下?谢谢!
|
|
|
|
|
|
|
Rank: Newbie Groups: Registered
Joined: 8/7/2011(UTC) Posts: 3
|
再顶一下。我也没有弄清楚怎么同时显示两级或多级目录。例如:产品按品牌分为联想、华硕,然后联想下分为台式机、笔记本、手机,华硕下分为台式机、笔记本、存储器;然后第三级才是具体产品。在网页左侧的导航栏想出现这样的效果:
联想 ......台式机 ......笔记本 ......手机 华硕 ......台式机 ......笔记本 ......存储器
注意,是同时出现者两级目录,而不是点击上级目录才显示下一级目录。 在设计视图时,数据查询一次只能查询一级目录,而我想一次性查到两级目录。
|
|
|
|
|
|
|
Rank: Administration Groups: Administrators, Registered
Joined: 9/3/2009(UTC) Posts: 1,555 Location: Xiamen China
|
请参考我这边的例子: http://forum.kooboo.com/...te-samples.aspx#post3949Regards, Jifeng Huang
Kooboo Team
Microsoft ASP.NET MVP
|
|
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.