More in this section

Forums / Developing with Sitefinity / Customized News Control

Customized News Control

2 posts, 0 answered
  1. Connections Academy Developer
    Connections Academy Developer avatar
    151 posts
    04 May 2005
    18 Feb 2010
    Link to this post
    I have created a custom control that incorporates the NewsView control in Sitefinity. In the code behind I am setting properties like this:

    NewsView.SingleItemUrl = "~/myUrl.aspx";

    I cannot seem to figure out how to hide the category and tag link by default? Any help you can give is appreciated.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    18 Feb 2010
    Link to this post
    Hello Connections Academy Developer,

    Showing and hiding Categories from the ListPageMaster template is not an option of the NewsView control itself. This is control from the NewsViewControlDesigner. Setting the visibility through the designer programmatically is not so simple.  I suggest that you should create a custom control that Inherits from NewsView and overriding SetItemMetaData. Then get the control ( Hyperlink with ID Category) that shows item categories and hide it by using Visible property. You can expose another public property in your custom control to set the visibility from the control designer.

    All the best,
    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.
2 posts, 0 answered