Share via


Creating a Category Folder

Categories provide a centralized structure for information browsing through an organized hierarchy of topics. The top level of the hierarchy is labeled Categories, with subcategories nested under it. Each category is a link to an expanded list that shows subcategories, category Best Bets, and documents assigned to the category. The category names are stored in a system dictionary, "urn:dictionary:categories".

Every workspace contains a category hierarchy. This hierarchy corresponds to the category names displayed in the user interface. To indicate what content is included in the folder, use the Category property of the KnowledgeCategoryFolder object to specify the category of the category folder. For example, the Category property of the http://myserver/myworkspace/categories/category1/category2 folder is ":category1:category2". Any document described by a KnowledgeDocument object that has ":category1:category2" as one of the values of its Categories property will appear in that folder.

To place a document in the Best Bet list, use the BestBetsCategory property of the KnowledgeDocument object to specify a list of category names, such as, category1:subcategory1, for which this document should be considered a Best Bet.

The following steps show the major tasks for creating a category folder. To see the full procedure for creating a category folder, see Document Management Object Model Sample.

  1. Instantiate a KnowledgeCategoryFolder object.
  2. Set the Category property.
  3. Invoke the DataSource.SaveTo method.

Best Bets

Categories

See Also

SharePoint Portal Server Help Documentation