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

Forums / Bugs & Issues / News index for different categories

News index for different categories

3 posts, 0 answered
  1. shraddha
    shraddha avatar
    87 posts
    Registered:
    18 May 2009
    02 Jun 2009
    Link to this post

    Hi,
    I have news section in my website categorized into sub sections using different news categories.
    I am trying to use news index for those sections.
    But news index is taking only single article page to display the search results.
    How can I specify categorize in news index for my sub sections?

  2. Parvan
    Parvan avatar
    151 posts
    Registered:
    24 Sep 2012
    04 Jun 2009
    Link to this post
    Hello shraddha,

    By default, the news index's result url points to a single news article.
    I suppose that you want to change the result urls. For example, to point to your news section of specific category.
    In order to do this you will need to do the following steps:
    1. Put the files CustomNewsModule.cs and CustomNewsIndexProvider.cs in your App_Code folder. In CustomNewsIndexProvider.cs you can customize further how the url will look.
    2. Open and edit your web.config file (replace the green with the yellow line):
    Before:
    <modules>  
    ...  
       <add type="Telerik.News.NewsModule, Telerik.News"/>  
    ...  
    </modules>  

    After:
    <modules> 
    ... 
       <add type="Telerik.News.CustomNewsModule, App_Code"/> 
    ... 
    </modules> 
     
    3. Re-index the news index.

    I hope this helps you.

    All the best,
    Parvan
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  3. shraddha
    shraddha avatar
    87 posts
    Registered:
    18 May 2009
    05 Jun 2009
    Link to this post
    Hi Parvan,

    Thanx for the help.
    It worked....
Register for webinar
3 posts, 0 answered