none
Category Hierarchy lost when supportsMultipleCategories is set to No

    Question

  • Posts to my blog can only be in one category, but the categoreis you can chose from are in a hierarchy, and I would like users to see this hierarchy when they select a category.  If I have got the category hierarchy workign fine if I have supportsMultipleCategories to Yes, however the moment I set supportsMultipleCategories to No, the category hierarchy is lost. 

    Any ideas on how to show the category hierarchy with suportsMultipleCategories set to no?  Below is my full WLWManifest file.

    <manifest xmlns="http://schemas.microsoft.com/wlw/manifest/weblog">
     <weblog>
      <imageUrl>http://localhost/favicon.ico</imageUrl> 
      <homepageLinkText>View Blog</homepageLinkText> 
      </weblog>
     <options>
      <supportsExtendedEntries>No</supportsExtendedEntries> 
      <supportsExcerpt>No</supportsExcerpt> 
      <supportsCustomDate>No</supportsCustomDate> 
      <supportsEmptyTitles>No</supportsEmptyTitles> 
      <supportsEmbeds>No</supportsEmbeds> 
      <supportsPostAsDraft>No</supportsPostAsDraft> 
      <supportsSlug>No</supportsSlug> 
      <supportsCategoriesInline>No</supportsCategoriesInline> 
      <supportsNewCategories>No</supportsNewCategories> 
      <supportsNewCategoriesInline>No</supportsNewCategoriesInline> 
      <supportsMultipleCategories>No</supportsMultipleCategories> 
      <supportsAutoUpdate>Yes</supportsAutoUpdate> 
      <supportsKeywords>Yes</supportsKeywords> 
      <supportsFileUpload>Yes</supportsFileUpload> 
      <supportsCategories>Yes</supportsCategories> 
      <supportsHierarchicalCategories>Yes</supportsHierarchicalCategories> 
     </options>
     <views>
      <default>WebLayout</default> 
      <view type="WebLayout" src="http://localhost/weblayout.ashx" /> 
      <view type="WebPreview" src="http://localhost/webpreview.ashx" /> 
     </views>
    </manifest>
    Sunday, July 19, 2009 11:49 AM

All replies

  • The multiselect controller is only shown supportsMultipleCategories is Yes, as you noted.  It looks like it isn't set up to handle the case you want.  Are you expecting the multiselect UI to show, but then only send the most nested category to be sent to the blog?
    -Brandon Turner [MSFT]
    Tuesday, July 21, 2009 9:12 PM
  • Essentially what I want to see what I see with the multiSelect UI, but using radio buttons instead of checkboxes (i.e. you can only select one item from the hierarchy).
    Tuesday, July 21, 2009 9:19 PM
  • Sorry, but that's exactly the problem... the tree control we're using supports check boxes, but not radio buttons.
    Wednesday, July 22, 2009 10:41 PM
    Owner