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

Forums / Developing with Sitefinity / News Module - Multiple Categories

News Module - Multiple Categories

4 posts, 0 answered
  1. Chad
    Chad avatar
    19 posts
    Registered:
    11 Sep 2008
    14 Jan 2009
    Link to this post
    Hi,

    Does anybody know if there is a way, using the built in News Module, to assign the News item to multiple categories instead of just one?

    Currently, there is just a drop down box to select the category, but I have the need to assign multiple categories to a news item.  I'd like to do it by extending the built-in News module, but base on what I can find, I'm not certain this can be done.

    Thanks,

    Chad

  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    15 Jan 2009
    Link to this post
    Hi Chad,

    Multiple categories are not implemented yet. You can use Tags instead, as this implementation allows you to add more than one tag to a single content item.

    Best wishes,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Chad
    Chad avatar
    19 posts
    Registered:
    11 Sep 2008
    16 Jan 2009
    Link to this post
    Thanks for the reply Georgi.  I've been trying to figure out how to set up a News View on a page such that:

    a) it pulls in News Items that are in the categories I specify (this is easy enough and I understand it)

    b) it also pulls in News Items that have specific tags.  For example, I set a News Item to have a tag called "Test Tag 1".  Now, I want my News View to be able to pull in News Items that have the tag "Test Tag 1" (in addition to pulling in News Items with the category I specify).

    Does that make sense?  Is something like that possible with the built-in tools, or do I need to extend what's there?

    Many Thanks,

    Chad
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    20 Jan 2009
    Link to this post
    Hi Chad,

    Yes, this makes sense. Option b) is possible. You should only fill the right FilterExpression in the NewsView control. Here is what it should be:
    Category in ("cat1") AND Tag.Name = "tag1" 

    This way, the NewsView is taking the news from Cat1 category, and also only those which are tagged with tag1
    Please see the attached screenshot for more information.

    I hope this helps.

    All the best,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
4 posts, 0 answered