1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Archive and categories

Archive and categories

10 posts, 0 answered
  1. Anthony Smith
    Anthony Smith avatar
    34 posts
    Registered:
    08 Dec 2009
    02 Mar 2010
    Link to this post
    Hi,

    I've got news pages which display news items based on category and I'm trying to use the archive control, which when clicked brings up all of the news stories.

    I would like to display only news stories for the particular category. I've tried setting the filterexpression category = categoryname, however this doesn't appear to work.

    Can you provide me with any pointers?

    Thanks,

    Anthony
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    02 Mar 2010
    Link to this post
    Hi Anthony Smith,

    The ContentFilterBuilder syntax is

    Category = "CATEGORYNAME" 

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Anthony Smith
    Anthony Smith avatar
    34 posts
    Registered:
    08 Dec 2009
    02 Mar 2010
    Link to this post
    Hi Ivan,

    I've tried this in the filterexpression section, however it still doesn't appear to work.

    Can you provide any further guidance?

    Thanks,

    Anthony
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    03 Mar 2010
    Link to this post
    Hello Anthony Smith,

    I am not able to reproduce this working with Sitefinity 3.7 SP2 and applying the filter on both controls.  You can also give a try to our demo website - demo.sitefinity.com.
    We have not experience problems with the filtering. All these controls use the same base class - NewsView, ContentView, EventsView, BlogPosts, NewsArchive control.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. Anthony Smith
    Anthony Smith avatar
    34 posts
    Registered:
    08 Dec 2009
    03 Mar 2010
    Link to this post
    Hi Ivan,

    I've tried this on the blogs section of the demo site and it doesn't appear to work there either.

    Just to clarify in the filterexpression section you need to type category = "Lorem", and then when you select a date it should only display items relating to that category?

    Thanks,

    Anthony
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    03 Mar 2010
    Link to this post
    Hello Anthony Smith,

    Please take a look at the attached video that illustrates filtering by categories over news items.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  7. Anthony Smith
    Anthony Smith avatar
    34 posts
    Registered:
    08 Dec 2009
    03 Mar 2010
    Link to this post
    Hi Ivan,

    Thanks for this.

    I've tried to do the same on the NewsArchive and BlogsArchive (and not the News / Blogs Items), and they are both still displaying all of the categories when I select one of the dates, rather than just the category entered in the filterexpression section.

    Is what I'm look to achieve possible with this control or will I need to customize it? If it is the later, can you provide any pointers?

    Thanks,

    Anthony





  8. jkregala
    jkregala avatar
    159 posts
    Registered:
    22 Sep 2009
    17 Jun 2010
    Link to this post
    Hi Ivan Dimitrov, the attached video says "File is broken"
  9. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    17 Jun 2010
    Link to this post
    Hi jkregala,

    Here is the file again. Try downloading it from this link.

    Sincerely yours,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  10. jkregala
    jkregala avatar
    159 posts
    Registered:
    22 Sep 2009
    17 Jun 2010
    Link to this post
    Thank you. :)
Register for webinar
10 posts, 0 answered