More in this section

Forums / Developing with Sitefinity / Event Calendar Provider

Event Calendar Provider

9 posts, 0 answered
  1. Tim
    Tim avatar
    156 posts
    Registered:
    23 Sep 2007
    11 Jan 2008
    Link to this post
    How can I change the provider from default news to something called "Events_Calendar" provider which I created in web.config file.

    <!-- Events Calendar Section--> 
            <add name="Events_Calendar" 
             visible="False" 
             defaultMetaField="Title" 
             securityProviderName="" 
             allowVersioning="True" 
             applicationName="/EventsCalendar" 
             versioningProviderName="" 
             connectionStringName="GenericContentConnection" 
             type="Telerik.Cms.Engine.Data.Providers.DefaultProvider, Telerik.Cms.Engine.Data" 
             listTemplate="~/Sitefinity/Admin/ControlTemplates/Events_Calendar/ControlPanelList.ascx" 
             insertTemplate="~/Sitefinity/Admin/ControlTemplates/Events_Calendar/ControlPanelInsert.ascx" 
             editTemplate="~/Sitefinity/Admin/ControlTemplates/Events_Calendar/ControlPanelEdit.ascx" 
             permissionsTemplate="~/Sitefinity/Admin/ControlTemplates/Events_Calendar/ControlPanelPermissions.ascx" 
             commandPanelTemplate="~/Sitefinity/Admin/ControlTemplates/Events_Calendar/CommandPanel.ascx" 
             editorTemplate="~/Sitefinity/Admin/ControlTemplates/Events_Calendar/EditorTemplate.ascx" 
             shareContentDialogTemplate="~/Sitefinity/Admin/ControlTemplates/Events_Calendar/NewContentDialog.ascx" 
             selectContentDialogTemplate="~/Sitefinity/Admin/ControlTemplates/Events_Calendar/SelectContentDialog.ascx" 
             contentVersionViewUrl="~/Sitefinity/Admin/ControlTemplates/Events_Calendar/ContentVersionView.aspx" 
             commentsListTemplate="~/Sitefinity/Admin/ControlTemplates/Events_Calendar/CommentsList.ascx" 
             commentsEditTemplate="~/Sitefinity/Admin/ControlTemplates/Events_Calendar/CommentsEdit.ascx" 
             contentSelectorTemplate="~/Sitefinity/Admin/ControlTemplates/Generic_Content/ContentSelector.ascx" 
             commentsModeration="true" /> 

    Because Right now, if I create content under "Events_Calendar" group, then the Calendar doesn't work right and doesn't high-light the date of the event.

    Please help!

    Tim
  2. Tim
    Tim avatar
    156 posts
    Registered:
    23 Sep 2007
    15 Jan 2008
    Link to this post
    Sitefinity Team,

    I am still waiting for the solution. Could you please get back to me as soon as you can?

    Many thanks
    Tim
  3. Tim
    Tim avatar
    156 posts
    Registered:
    23 Sep 2007
    16 Jan 2008
    Link to this post
    Since no one gets back to me on this question. I give up.......................

    Tim
  4. Tihomir
    Tihomir avatar
    53 posts
    Registered:
    24 Sep 2012
    16 Jan 2008
    Link to this post
    Hi Tim,

    First excuse us for the delay.

    We do not quite understand what you mean and where is the problem. Can you please send us your web.config file so we can investigate it and give you some hints as to what can be wrong.

    Once again apologies for the delay!

    Best wishes,
    Tihomir
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Tim
    Tim avatar
    156 posts
    Registered:
    23 Sep 2007
    16 Jan 2008
    Link to this post
    Thanks for getting back to me.

    I tried to use your NewsCalenda control which comes with TIUSite and seems it only works with default News provider. I tried to set the control to read news from the provider I set up in web.config for example: "Events_Calendar"  and it doesn't work the way it should be and the calenda date doesn't get highlighted.

    By the way I can send you a screen shot to your email since I can't upload image through forums.

    Tim
  6. Tihomir
    Tihomir avatar
    53 posts
    Registered:
    24 Sep 2012
    16 Jan 2008
    Link to this post
    Hi Tim,

    The NewsCalendar control uses NewsList control which by default works with the default News provider. You need to set the ProviderName property of the NewsList control to your custom provider (Events_Calendar).

    Let us know how it goes!

    Best wishes,
    Tihomir
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  7. Tim
    Tim avatar
    156 posts
    Registered:
    23 Sep 2007
    16 Jan 2008
    Link to this post
    Thanks for getting back to me.

    I knew how to choose different News provider for Event Calendar control. But the point is after I choose the different News provider other than default News provider, the Calendar date doesn't get highlight  as it should based on the pub date.


    Hope I made myself clear this time
    Thanks
    Tim
  8. Tihomir
    Tihomir avatar
    53 posts
    Registered:
    24 Sep 2012
    17 Jan 2008
    Link to this post
    Hello Tim,

    After testing the News Calendar sample control I found that you will need to make one more modification to it  in order to use it with a provider other than the default one.

    In the NewsCalendar.ascx.cs, you will need to replace

    NewsManager manager = new NewsManager(NewsManager.DefaultContentProvider);

    with

    NewsManager manager = new NewsManager(newsList.ProviderName);

    Previously, the News Calendar sample control only used the default provider to populate its calendar, and with this modification you will use the provider that you set to your NewsList control.

    Hope this helps!

    Best wishes,
    Tihomir
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  9. Tim
    Tim avatar
    156 posts
    Registered:
    23 Sep 2007
    17 Jan 2008
    Link to this post
    That's answer I have been waiting for.

    Thanks a lot
    Tim
Register for webinar
9 posts, 0 answered