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

Forums / Designing with Sitefinity / change Events view front end

change Events view front end

5 posts, 0 answered
  1. Rabindra
    Rabindra avatar
    106 posts
    Registered:
    17 May 2009
    04 Aug 2009
    Link to this post
    Hi,
    I am trying to change the front end view of events.
    First I mapped the .ascx file

    <viewSettings hostType="Telerik.Events.WebControls.EventsView">
          <additionalTemplates>
            <!--Item List-->
            <add key="ItemListTemplatePath" layoutTemplatePath="~/Sitefinity/ControlTemplates/Events/ContentViewItemViewMSC.ascx" />
            <!--Single Item-->
            <add key="SingleItemTemplatePath" layoutTemplatePath="~/Sitefinity/ControlTemplates/Events/ContentViewSingleItemViewMSC.ascx" />
          </additionalTemplates>
        </viewSettings>

    Now when I change something in ContentViewItemViewMSC.ascx file nothing happens on the frontend. Eg. to test I removed this line but I can still see address in front end.
    <p class="sf_contentCity">
                    <asp:Literal ID="City" runat="server" />
    </p>

    what am i doing wrong here?
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    04 Aug 2009
    Link to this post
    Hi Rabindra,

    Can you point the templates manually, rather than mapping them?
    Just open the EventsView in edit mode, and set the SingleItem templates and List Item templates from the user interface. 

    Regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  3. Rabindra
    Rabindra avatar
    106 posts
    Registered:
    17 May 2009
    04 Aug 2009
    Link to this post
    I tried your suggestion but it's not working.
    Here is what I did.
    I opened ListPageMaster.ascx which was located at "Sitefinity/Admin/ControlTemplates/Events/Modes/". Then removed these two items and saved it.
    Country: <asp:Literal ID="Country" runat="server" Text="{0}" /><br />
    State: <asp:Literal ID="State" runat="server" Text="{0}" /><br />


    But I can still see them in Events view.
    Then I thought I would copy the ListPageMaster.ascx and rename to ListPageMasterMSC.ascx.
    Then I went to frontend of Events View, on Edit mode went to Advanced and Misc. I changed the value in "ItemListTemplateName" to "Telerik.Events.Resources.ControlTemplates.Frontend.Modes.ListPageMasterMSC.ascx". But now I get following error.
    Invalid resource name (Telerik.Events.Resources.ControlTemplates.Frontend.Modes.ListPageMasterMSC.ascx) for assembly (Telerik.Events, Version=3.6.1936.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79) or empty template.

    I did make a copy of ListPageMaster.ascx.resx and renamed to ListPageMasterMSC.ascx.resx

    Now my question is where did I miss again?
    Why when I changed ListPageMaster.ascx to ListPageMasterMSC.ascx I got the above error.
    Why there is no mapping .ascx in place for this case?
  4. Rabindra
    Rabindra avatar
    106 posts
    Registered:
    17 May 2009
    05 Aug 2009
    Link to this post
    Never mind. I was looking in the wrong place.
    I was supposed to change ItemListTemplatePath and SingleItemTemplatePath.
    To change this you have to go to frontend of Events View, Edit mode, Advanced and Appearance. NOT Misc.

  5. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    06 Aug 2009
    Link to this post
    Hello Rabindra,

    Yes, this is what I meant.
    I am glad you were able to find - I will be more specific the next time. 

    Greetings,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
Register for webinar
5 posts, 0 answered