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

Forums / Developing with Sitefinity / How to override host type for Blog Posts for Admin?

How to override host type for Blog Posts for Admin?

3 posts, 1 answered
  1. bemara57
    bemara57 avatar
    135 posts
    Registered:
    27 Mar 2008
    27 Mar 2010
    Link to this post
    I am trying to use embedded views for PostsEditView and PostsNewView for the admin side. I did this with my events module putting this in my ControlsConfig.xml:

    <viewSettings hostType="Telerik.Events.WebControls.Admin.EventsItemsView">
        <views>
            <remove name="EventsItemEdit"></remove>
            <remove name="EventsItemNew"></remove>
            <add name="EventsItemEdit" viewType="Netopia.Sitefinity.Events.WebControls.Admin.EventsItemEdit, Netopia.Sitefinity.Events"></add>
            <add name="EventsItemNew" viewType="Netopia.Sitefinity.Events.WebControls.Admin.EventsItemNew, Netopia.Sitefinity.Events"></add>
        </views>
    </viewSettings>

    I tried something similar for blog post like below, but I don't have it right:

    <viewSettings hostType="Telerik.Blogs.WebControls.Admin.PostsListView">
        <views>
            <remove name="PostEditView"></remove>
            <remove name="PostNewView"></remove>
            <add name="PostEditView" viewType="Netopia.Sitefinity.Blogs.WebControls.Admin.PostEditView, Netopia.Sitefinity.Blogs"></add>
            <add name="PostNewView" viewType="Netopia.Sitefinity.Blogs.WebControls.Admin.PostNewView, Netopia.Sitefinity.Blogs"></add>
        </views>
    </viewSettings>
    What is the right hostType for this?
  2. bemara57
    bemara57 avatar
    135 posts
    Registered:
    27 Mar 2008
    28 Mar 2010
    Link to this post
    This worked:

    <viewSettings hostType="Telerik.Blogs.WebControls.Admin.PostsView">
        <views>
            <remove name="PostEditView"></remove>
            <remove name="PostNewView"></remove>
            <add name="PostEditView" viewType="Netopia.Sitefinity.Blogs.WebControls.Admin.PostEditView, Netopia.Sitefinity.Blogs"></add>
            <add name="PostNewView" viewType="Netopia.Sitefinity.Blogs.WebControls.Admin.PostNewView, Netopia.Sitefinity.Blogs"></add>
        </views>
    </viewSettings>

  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    28 Mar 2010
    Link to this post
    Hello bemara57,

    Here is a topic that explains how to replace views.

    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
Register for webinar
3 posts, 1 answered