I want to render full calendar on the content page with month/ week view etc so how can I do this macro? Although I can see macros for Latest events and upcoming events but I can't see one to display full calendar. Please see attached screenshot:
I want to display following inside my page:
So how can I get macro for this? I look forward to hear from you soon.
Sorry for late reply. I used version Version 3.2.4 as I had errors while installing 3.4.1 via nuget.
Later I tried to uninstall 3.2.4 and installed 3.4.1 via zip file but again I got errors in loading some dlls. I've a plan to try a clean attempt today.
I get following error when I try install version 3.4.1, can you please help to resolve this?
Server Error in '/' Application.
Could not load types from assembly EventCalendar.Umbraco, Version=3.4.1.0, Culture=neutral, PublicKeyToken=null, errors:
Exception: System.TypeLoadException: Could not load type 'umbraco.interfaces.IDiscoverable' from assembly 'interfaces, Version=1.0.5891.23238, Culture=neutral, PublicKeyToken=null'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Reflection.ReflectionTypeLoadException: Could not load types from assembly EventCalendar.Umbraco, Version=3.4.1.0, Culture=neutral, PublicKeyToken=null, errors:
Exception: System.TypeLoadException: Could not load type 'umbraco.interfaces.IDiscoverable' from assembly 'interfaces, Version=1.0.5891.23238, Culture=neutral, PublicKeyToken=null'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ReflectionTypeLoadException: Could not load types from assembly EventCalendar.Umbraco, Version=3.4.1.0, Culture=neutral, PublicKeyToken=null, errors:
Exception: System.TypeLoadException: Could not load type 'umbraco.interfaces.IDiscoverable' from assembly 'interfaces, Version=1.0.5891.23238, Culture=neutral, PublicKeyToken=null'.
]
Umbraco.Core.TypeFinder.GetTypesWithFormattedException(Assembly a) +567
Umbraco.Core.TypeFinder.GetClasses(Type assignTypeFrom, IEnumerable1 assemblies, Boolean onlyConcreteClasses, Func2 additionalFilter) +536
Umbraco.Core.PluginManager.LoadViaScanningAndUpdateCacheFile(TypeList typeList, TypeResolutionKind resolutionKind, Func1 finder) +46
Umbraco.Core.PluginManager.ResolveTypes(Func1 finder, TypeResolutionKind resolutionType, Boolean cacheResult) +2901
Umbraco.Core.PluginManager.ResolveTypes(Boolean cacheResult, IEnumerable`1 specificAssemblies) +191
Umbraco.Core.CoreBootManager.InitializeApplicationEventsResolver() +71
Umbraco.Core.CoreBootManager.Initialize() +861
Umbraco.Web.WebBootManager.Initialize() +118
Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e) +240
[HttpException (0x80004005): Could not load types from assembly EventCalendar.Umbraco, Version=3.4.1.0, Culture=neutral, PublicKeyToken=null, errors:
Exception: System.TypeLoadException: Could not load type 'umbraco.interfaces.IDiscoverable' from assembly 'interfaces, Version=1.0.5891.23238, Culture=neutral, PublicKeyToken=null'.
]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +529
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +169
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +169
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +396
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +333
[HttpException (0x80004005): Could not load types from assembly EventCalendar.Umbraco, Version=3.4.1.0, Culture=neutral, PublicKeyToken=null, errors:
Exception: System.TypeLoadException: Could not load type 'umbraco.interfaces.IDiscoverable' from assembly 'interfaces, Version=1.0.5891.23238, Culture=neutral, PublicKeyToken=null'.
]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +525
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +124
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +700
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2114.0
Macro for full Event Calendar
Hi David,
I want to render full calendar on the content page with month/ week view etc so how can I do this macro? Although I can see macros for Latest events and upcoming events but I can't see one to display full calendar. Please see attached screenshot:
I want to display following inside my page:
So how can I get macro for this? I look forward to hear from you soon.
Regards Gurmail
Hi Gurmail,
the latest version of the package should have a macro that displays calendar.
Which version do you use?
Regards David
Hi David,
Sorry for late reply. I used version Version 3.2.4 as I had errors while installing 3.4.1 via nuget.
Later I tried to uninstall 3.2.4 and installed 3.4.1 via zip file but again I got errors in loading some dlls. I've a plan to try a clean attempt today.
Regards Gurmail
Hello David,
I get following error when I try install version 3.4.1, can you please help to resolve this?
Server Error in '/' Application.
Could not load types from assembly EventCalendar.Umbraco, Version=3.4.1.0, Culture=neutral, PublicKeyToken=null, errors: Exception: System.TypeLoadException: Could not load type 'umbraco.interfaces.IDiscoverable' from assembly 'interfaces, Version=1.0.5891.23238, Culture=neutral, PublicKeyToken=null'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Reflection.ReflectionTypeLoadException: Could not load types from assembly EventCalendar.Umbraco, Version=3.4.1.0, Culture=neutral, PublicKeyToken=null, errors: Exception: System.TypeLoadException: Could not load type 'umbraco.interfaces.IDiscoverable' from assembly 'interfaces, Version=1.0.5891.23238, Culture=neutral, PublicKeyToken=null'.
Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ReflectionTypeLoadException: Could not load types from assembly EventCalendar.Umbraco, Version=3.4.1.0, Culture=neutral, PublicKeyToken=null, errors: Exception: System.TypeLoadException: Could not load type 'umbraco.interfaces.IDiscoverable' from assembly 'interfaces, Version=1.0.5891.23238, Culture=neutral, PublicKeyToken=null'. ] Umbraco.Core.TypeFinder.GetTypesWithFormattedException(Assembly a) +567 Umbraco.Core.TypeFinder.GetClasses(Type assignTypeFrom, IEnumerable
1 assemblies, Boolean onlyConcreteClasses, Func
2 additionalFilter) +536 Umbraco.Core.PluginManager.LoadViaScanningAndUpdateCacheFile(TypeList typeList, TypeResolutionKind resolutionKind, Func1 finder) +46 Umbraco.Core.PluginManager.ResolveTypes(Func
1 finder, TypeResolutionKind resolutionType, Boolean cacheResult) +2901 Umbraco.Core.PluginManager.ResolveTypes(Boolean cacheResult, IEnumerable`1 specificAssemblies) +191 Umbraco.Core.CoreBootManager.InitializeApplicationEventsResolver() +71 Umbraco.Core.CoreBootManager.Initialize() +861 Umbraco.Web.WebBootManager.Initialize() +118 Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e) +240[HttpException (0x80004005): Could not load types from assembly EventCalendar.Umbraco, Version=3.4.1.0, Culture=neutral, PublicKeyToken=null, errors: Exception: System.TypeLoadException: Could not load type 'umbraco.interfaces.IDiscoverable' from assembly 'interfaces, Version=1.0.5891.23238, Culture=neutral, PublicKeyToken=null'. ] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +529 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +169 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +169 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +396 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +333
[HttpException (0x80004005): Could not load types from assembly EventCalendar.Umbraco, Version=3.4.1.0, Culture=neutral, PublicKeyToken=null, errors: Exception: System.TypeLoadException: Could not load type 'umbraco.interfaces.IDiscoverable' from assembly 'interfaces, Version=1.0.5891.23238, Culture=neutral, PublicKeyToken=null'. ] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +525 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +124 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +700
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2114.0
Hi Gurmail,
which Umbraco version do you use? As the newest version only runs on 7.6. If you are on an older version it may cause these kinds of problems.
Creating a macro for showing a calendar is not difficult. The basic macro code which I use in the macro for the package can be found in this gist: https://gist.github.com/Mantus667/ec5e5a2e914cd2983af7058aae75f641
It basically is a macro with a calendar picker where you can select the calendar and a page picker where you can select the event detail page to use.
Regards David
is working on a reply...