More in this section

Forums / Developing with Sitefinity / Events Calendar

Events Calendar

3 posts, 0 answered
  1. Gregory
    Gregory avatar
    25 posts
    Registered:
    16 Mar 2009
    24 Mar 2009
    Link to this post
    Is it possible to use the blog calendar control to display event dates. I tried experimenting with the provider name based on the provider names in web config but it didn't work.

    I know there is a calendar control for the events already but we like the look of the smaller calendar if we could get it to highlight the events and link to the specific events that take place on that day automatically it would be great.
  2. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    25 Mar 2009
    Link to this post
    I think this would probably involve quite a bit of customization, because the blog control is populated from the blogs provider. Although you might be able to change the provider in the Data field of the control, the control is hard coded to use the "Publication_Date" meta field (not the Event_Start which you will likely be using!)

    it shouldn't be all that difficult to develop something like this. I did this for our city calendar (www.mcallen.net/calendar) using the standard asp.net calendar control. granted it's a little more elaborate than your needs but the concept is still the same:

    1) grab all the dates for the given month using the events api
    2) handle the dayrender event for the calendar control. if the event date is present from step 1, chnage the content of the control by changing the background color, adding a link, etc..

    here's an example article with a basic simple example: http://odetocode.com/Articles/223.aspx

    i hope this points you in the right direction for getting started, let me know if you make any progress and I'll do what I can to help!
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    26 Mar 2009
    Link to this post
    Hello SelArom,

    Here is an old post that I found and it covers required task.

    http://blogs.sitefinity.com/Ivan/Posts/07-02-21/Using_your_own_Master_Page_and_providing_blog-like_calendar_navigation.aspx

    The idea is that you need to find and get all dates on your calendar view . You need to replace the template for this every cell that you have a content  item with a custom template. You need to loop through all dates to see if there are events and then show them.

    I hope this helps.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Register for webinar
3 posts, 0 answered