Kooboo Forum
»
Site elements
»
Schema
»
Root categories - Categories with no parent
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 9/8/2009 Posts: 91 Location: Belgium
|
Hello, is there a better way to find which items don't have a category themself? Code: var categories = CmsContext.ContentService.GetContentsByFolder("Categories");
foreach (var category in categories) { //Finds root categories var parent = category.GetCategoriesByContentAndFolder("categories"); if (!parent.Any()) { //Root item found! } }
|
|
|
|
Rank: Administration
Groups: Administrators, Registered
Joined: 9/3/2009 Posts: 571 Location: Xiamen China
|
I do not know of a better way. Regards, Jifeng Huang
Kooboo Team
|
|
|
|
Guest
|
Kooboo Forum
»
Site elements
»
Schema
»
Root categories - Categories with no parent
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.