More in this section
Forums / General Discussions / Blog categories displays categories for future posts

Blog categories displays categories for future posts

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Per Osbeck
    Per Osbeck avatar
    7 posts
    12 May 2010
    09 Mar 2011
    Link to this post

    when using the CategoriesTree for the blog, it displays categories that are assigned to posts that not yet have been published, in other words, that have a future "Publication_Date".

    Is it possible to filter out this and only display the categories that have valid posts? Currently is links "my category (1)" and clicking on it displays nothing.

    running 3.7sp4.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    10 Mar 2011
    Link to this post
    Hello Per ,

    The control gets all categories no matter of the blog post status. In your case you will need a custom control that inherits from CategoriesTree class. You can override BindCategories() method where you can get the categories related to the published blog posts.

    Please take a look at the categories API reference

    All the best,
    Ivan Dimitrov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
2 posts, 0 answered