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

Forums / Designing with Sitefinity / Which Control is the NewsView?

Which Control is the NewsView?

8 posts, 1 answered
  1. Stuart Hemming
    Stuart Hemming avatar
    144 posts
    Registered:
    07 Jul 2004
    12 May 2010
    Link to this post
    I'm using the Community Edition of SiteFinity and am having a devil of a job identifying which control is acting as the NewsView.

    I want to know which it is 'cos I want to change the layout.

    I tried adding some static content to each of the controls and refreshing my page but that didn't help. I then tried excluding each of the controls in the news folder from the project in VS. I have all of them excluded yet can still add a news view to my page.

    Anyone have any clues?

    -- 
    Confused, of Grantham
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    12 May 2010
    Link to this post
    Hello Stuart Hemming,

    The control is embedded into dll. You do not have direct access to its code. The control is added as a ToolBox item directly through News module and there is not configuration or physical file you could use to make some changes. Here is a KB article that explains how to change the layout of this control ( and all ContentView based controls) -How to apply custom style sheets to Sitefinity Content View controls

    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.
    Answered
  3. Stuart Hemming
    Stuart Hemming avatar
    144 posts
    Registered:
    07 Jul 2004
    12 May 2010
    Link to this post
    Thanks Ivan.

    Nice quick reply.

    -- 
    Stuart
  4. Stuart Hemming
    Stuart Hemming avatar
    144 posts
    Registered:
    07 Jul 2004
    12 May 2010
    Link to this post
    Ivan

    I now have a config file that looks like this ...

    <?xml version="1.0" encoding="utf-8"?>
    <controlsConfig>
      <viewMap>
        <!--Provides user interface for displaying a list of all the news items in the News module.-->
        <viewSettings hostType="Telerik.News.WebControls.Admin.NewsItemsList" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/News/NewsItemsList.ascx" />
        <!--Provides user interface for previewing a news item in the News module.-->
        <viewSettings hostType="Telerik.News.WebControls.Admin.NewsItemPreview" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/News/NewsItemPreview.ascx" />
        <!--Provides user interface for editing a news item in the News module.-->
        <viewSettings hostType="Telerik.News.WebControls.Admin.NewsItemEdit" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/News/NewsItemEdit.ascx" />
        <!--Provides user interface for adding new news items in the News module.-->
        <viewSettings hostType="Telerik.News.WebControls.Admin.NewsItemNew" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/News/NewsItemNew.ascx" />
        <!--Provides user interface for managing the history of news item versions in the News module.-->
        <viewSettings hostType="Telerik.News.WebControls.Admin.NewsItemHistory" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/News/NewsItemHistory.ascx" />
        <!--Provides user interface for managing categories in the News module.-->
        <viewSettings hostType="Telerik.News.WebControls.Admin.NewsCategoriesView" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/News/CategoriesView.ascx" />
        <!--Provides user interface for managing tags in the News module.-->
        <viewSettings hostType="Telerik.News.WebControls.Admin.NewsTagsView" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/News/TagsView.ascx" />
        <!--Provides user interface for managing permissions in the News module.-->
        <viewSettings hostType="Telerik.News.WebControls.Admin.NewsPermissionsView" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/News/PermissionsView.ascx" />
        <!--Provides user interface for displaying a list of blogs in the blogs module.-->
      </viewMap>
    </controlsConfig>

    Am I right in thinking that this will give me control of the NewsPages? (Initial tests suggest yes, but I wanted to be sure I've not missed anything).

    -- 
    Stuart
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    12 May 2010
    Link to this post
    Hi Stuart Hemming,

    This will give you control over the backend views - when you edit/create content items - News. NewsView is a public control, so if you want to modify it you should go through the KB article. Here is another blog post that explains how to map templates for ContentView based controls-  Working with presentation modes.

    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.
  6. Stuart Hemming
    Stuart Hemming avatar
    144 posts
    Registered:
    07 Jul 2004
    12 May 2010
    Link to this post
    Again thanks for the quick reply.

    As it is I discovered that I had missed something. I will try and read through the whole thing (there is rather a lot of it), but for now, I think I'm winning.

    All the best.

    -- 
    Stuart
  7. Stuart Hemming
    Stuart Hemming avatar
    144 posts
    Registered:
    07 Jul 2004
    13 May 2010
    Link to this post
    Ivan,

    I note that in one of your articles, you say that the user shouldn't map all of the embedded controls to external ones unless they indent to change them as it would make updating them in the future more difficult.

    How will it make it more difficult? The way things are are shaping up, I'm going to need to map, the public-side (Presentation?) controls for news, events, blogs and possible forums. Am I going to have problems?

    -- 
    Stuart
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    13 May 2010
    Link to this post
    Hello Stuart Hemming,

    Forums templates are not embedded . They are still stored into the project. There would not be a problem if  you
    map templates that you are going to change. When you upgrade you should keep in mind that you have some modified templates.

    Best wishes,
    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.
Register for webinar
8 posts, 1 answered