Event calendar for Umbraco V3

05 September 2007 by Ismail

Right guys finally I have updated the events calendar and thanks to Per's package creator made a package.  If anyone is brave enough to test you can get the umb file here.

 

After installing, it should create Events and Event document types an events calendar macro and in the usercontrols directory an eventscalendar directory with some images and xsl and xsd files. You should also have a calendarConfig file in your config directory.  In this file you can turn caching on and off also you need to for each calendar create an entry in this file giving it the parent id (ie where all events live) and unique cache name. You will also need to do the following in the web.config in the configSections bit add

 

<section name="calendarConfig" type="umbracoEventsCalendar.ConfigSectionHandler, umbracoEventsCalendar,Version=1.0.2803.28183, Culture=neutral"/>

 

and outside of configSections add

 

<calendarConfig configSource="config\calendar.config" />

 

The package will create a page called Events with one test event if all has gone well you should be able to view it.  Make sure in your master template you have aspform tag else it wont work.  If anyone wants source let me know.  If you have installed old one then package will overwrite so make sure if you have made modifications to eventscalendar.ascx you back it up.  Also remove DataCalendar.dll its not needed anymore the code for this has been merged into the control.

 

For more information on the parameters to the calendar have look here ignore all the installation instructions becuase you dont need them you have installation instructions above.


24 comment(s) for “Event calendar for Umbraco V3”

  1. test
  2. hi,

    I'm having trouble with this, I gett eh following error when i try to view the calendar:

    Control 'eventsCalendar_2_cal1' of type 'DataCalendar' must be placed inside a form tag with runat=server.

    I think its to do with the form tags, cna you please explain wxactly where I need to add them?

    thanks alot,
    james
  3. I've confirmed two issues with this Calendar package.
    1. If I set the apply_source_formatting option in TinyMCE to true, the page that contains the calendar control will fail to save/publish, throwing an exceptions (Length cannot be less than zero). This has been tested forward and backwards. Once the option goes back to false (and clear the browser's cache), the page starts working again.
    2. The page will throw an exception if its template has the calendar, AND more than one ASPNET_FORM tag regions. Other page/templates with multiple ASPNET_FORM tag regions work just fine. This makes it impossible to have the XSLTSearch box on the same page where a Calendar exists.

    I'd appreciate it if the developer of the Calendar takes a look at these. It's a great control, by the way, other than these little problems. Thanks in advance.

    Howard
  4. I've confirmed two issues with this Calendar package.
    1. If I set the apply_source_formatting option in TinyMCE to true, the page that contains the calendar control will fail to save/publish, throwing an exceptions (Length cannot be less than zero). This has been tested forward and backwards. Once the option goes back to false (and clear the browser's cache), the page starts working again.
    2. The page will throw an exception if its template has the calendar, AND more than one ASPNET_FORM tag regions. Other page/templates with multiple ASPNET_FORM tag regions work just fine. This makes it impossible to have the XSLTSearch box on the same page where a Calendar exists.

    I'd appreciate it if the developer of the Calendar takes a look at these. It's a great control, by the way, other than these little problems. Thanks in advance.

    Howard
  5. Matthew,

    Thanks for the positive comments. With regards to your issue try the following in the events.xslt where you have the element URL in element node get rid of the / see if that fixes it.

    Regards

    Ismail
  6. I've confirmed two issues with this Calendar package.
    1. If I set the apply_source_formatting option in TinyMCE to true, the page that contains the calendar control will fail to save/publish, throwing an exceptions (Length cannot be less than zero). This has been tested forward and backwards. Once the option goes back to false (and clear the browser's cache), the page starts working again.
    2. The page will throw an exception if its template has the calendar, AND more than one ASPNET_FORM tag regions. Other page/templates with multiple ASPNET_FORM tag regions work just fine. This makes it impossible to have the XSLTSearch box on the same page where a Calendar exists.

    I'd appreciate it if the developer of the Calendar takes a look at these. It's a great control, by the way, other than these little problems. Thanks in advance.

    Howard
  7. AMJ,

    Have a look at http://www.manchesterfire.gov.uk/about-us/greater-manchester-fire-and-rescue-authority/calendar.aspx
  8. Excellent! Thanks!
  9. Hi Ismail

    The events package is great, just have one issue the url on some items is wrong, not putting in the Fully Qualified Domain name first see example here http://www.catsanddogs.co.nz/events.aspx

    Any ideas?
  10. Hi Ismail,

    I'm in over my head on translating. Itried looking through the files in the source. But have no clue where to look to change all day and months in to Danish.

    And if I manage what. Need to create an umb package or??

    please advice.

    claus
  11. Can anyone point me to a website that might have this up and running? I'd like to see if it's what I want. I'm not a programmer and will be dependent upon others to install it. We already have the Events Calendar but it's text based - not a calendar template where the user can click on March 5 and see all meetings for the day. Thanks for your help!
  12. can I translate the calendar into another language? I'm thinking of the months and weekdays.

  13. Claus,

    Feel free to customise. You can get the source here http://ismail.umbraco.net/media/2334/calendar.zip

    Let me know how you get on.

    Regards

    Ismail
  14. Hi Ismail,

    Can you expand on the comment on 16th September:

    "I've fixed item 2 above - I removed the extra '/' from the URL element in the events.xslt "

    Do I still have to do that, 'cos I am getting the same problem? Is that the one on Line 25 where it says (/@id) ?

    How do I clear the cache? I have been playing about with this line (including putting junk into it) and it makes no difference whatever.

    Thanks, Tony.
  15. Sorry - my confusion. I don't know how I got (/@id) into my file in the first place.

    It's the same line, but the / immediately after the URL tag needs to come out.

    Also I have found your instruction that ?Refresh=1 in the URL clears the cache, which seems to work.

    Thanks again.
  16. I have made a number of additions to Ismail's eventsCalendar, mainly aimed at handling a more general set of events. The modified files can be downloaded from http://homepage.ntlworld.com/maynard-smith/eventscalendar 6-11-07.zip

    There is a list of changes at the top of events.xslt which I hope is reasonably explanatory.

    Best regards, Tony.
  17. Tommy,

    Did you have the old one knocking around? Might want to get rid of that one first. Also might want to clear your asp.net cache. Stop iis and delete dir c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files or than that no idea i have not seen this error before

    Ismail
  18. This is a great package and just what I am looking for - I couldn't get along without it.

    However there are a few problems, which it might help others to be aware of. I think they are mainly the result of incompatibility between the Document Types and/or test pages in the package and Warren Buckley's Creative Website starter kit which I have installed.

    1. Firstly the “Events” page was loaded directly under “Content”, rather than under the Home Page, which appeared to interfere with the Navigation macro in the starter kit.

    2. Secondly, it took a while to realise that the call to the EventsCalendar macro which I was looking for in a template somewhere was in fact buried in the (hidden) text of the contents field. (This needs altering of course since the Start Node Id needs to be set according to the current site.) Even then I could not get the page to display anything – it kept giving Server Null Reference Errors.

    [I tried quoting the macro call for reference of other newbodies, but the blog threw it out as potentially dangerous input.]

    3. Thirdly I also could not get the test Event page to display anything. It gave either a complete blank, or again a Null Reference Error.

    4. Also one cannot as recommended put a Form Tag in the Master template, because there are other Form tags in lower level places. I put these into the template for my calendar page instead. (N.B. For other beginners one must use the Umbraco macro ?ASPNET_FORM and not straight HTML Form tags.)

    I therefore created new Calendar and myEvent document types, and sample documents of each type from scratch. Having remembered to edit the events.xslt file to call my new document type it worked like a charm!

    Thanks, Tony.
  19. Hi Ismail, I tried to install your events calendar package using your instructions.
    When I add the eventsacalendar macro to my template I get the following error in my trace:

    Error creating usercontrol (/usercontrols/eventscalendar/eventsCalendar.ascx)
    c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_eventscalendar.ascx.e39aa281.x-fykffn.0.cs(363): error CS0433: The type 'DataControls.DataCalendar' exists in both 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\assembly\dl3\97c74347\00c9eff9_719fc601\DataCalendar.DLL' and 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\assembly\dl3\417d396a\fabbfbc6_8115c801\umbracoEventsCalendar.DLL'
    at System.Web.Compilation.AssemblyBuilder.Compile()
    at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
    at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
    at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
    at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
    at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath)
    at System.Web.UI.TemplateControl.LoadControl(String virtualPath)
    at umbraco.macro.loadUserControl(String fileName, Hashtable attributes, page umbPage)


    Do you have any idea of whats could be wrong?

    Thanks
    >Tommy
  20. Hi Ismail, I tried to install your events calendar package using your instructions.
    When I add the eventsacalendar macro to my template I get the following error in my trace:

    Error creating usercontrol (/usercontrols/eventscalendar/eventsCalendar.ascx)
    c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_eventscalendar.ascx.e39aa281.x-fykffn.0.cs(363): error CS0433: The type 'DataControls.DataCalendar' exists in both 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\assembly\dl3\97c74347\00c9eff9_719fc601\DataCalendar.DLL' and 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\assembly\dl3\417d396a\fabbfbc6_8115c801\umbracoEventsCalendar.DLL'
    at System.Web.Compilation.AssemblyBuilder.Compile()
    at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
    at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
    at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
    at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
    at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath)
    at System.Web.UI.TemplateControl.LoadControl(String virtualPath)
    at umbraco.macro.loadUserControl(String fileName, Hashtable attributes, page umbPage)


    Do you have any idea of whats could be wrong?

    Thanks
    >Tommy
  21. Hi Ismail,
    The package worked great!

    1. I had to edit events.xslt and re-import the 'event' document type under a different alias, since I already had a document type 'Event'. It might be an idea to rename to 'Calendar Event' or something to avoid confusion?

    2. I'm having trouble getting the links to work from the events in the calendar - they are all coming up relative to the root, rather than from the Events folder. Any ideas?

    Thanks for a great package!
  22. I've fixed item 2 above - I removed the extra '/' from the URL element in the events.xslt

  23. Hi Ismail, I tried to install your events calendar package using your instructions.
    When I add the eventsacalendar macro to my template I get the following error in my trace:

    Error creating usercontrol (/usercontrols/eventscalendar/eventsCalendar.ascx)
    c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\App_Web_eventscalendar.ascx.e39aa281.x-fykffn.0.cs(363): error CS0433: The type 'DataControls.DataCalendar' exists in both 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\assembly\dl3\97c74347\00c9eff9_719fc601\DataCalendar.DLL' and 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\26676eb7\92c7e946\assembly\dl3\417d396a\fabbfbc6_8115c801\umbracoEventsCalendar.DLL'
    at System.Web.Compilation.AssemblyBuilder.Compile()
    at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
    at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
    at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
    at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
    at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath)
    at System.Web.UI.TemplateControl.LoadControl(String virtualPath)
    at umbraco.macro.loadUserControl(String fileName, Hashtable attributes, page umbPage)


    Do you have any idea of whats could be wrong?

    Thanks
    >Tommy
  24. Hi Ismail,
    The package worked great!

    1. I had to edit events.xslt and re-import the 'event' document type under a different alias, since I already had a document type 'Event'. It might be an idea to rename to 'Calendar Event' or something to avoid confusion?

    2. I'm having trouble getting the links to work from the events in the calendar - they are all coming up relative to the root, rather than from the Events folder. Any ideas?

    Thanks for a great package!

Leave a comment


(not shown)


(optional - remember http://)


Stop those damn spammers