Close

Can't add slider to widget

viveramedia
11 years ago
#2080 Quote
Avatar
  • 26
Hi,

I want to add a slider to a mobile widget (mobile_home_page_top) however it isn't in my list of available widgets.

Can you let me know how I can add this?

Many thanks,

Dave
Boyko
11 years ago
#2081 Quote
Avatar
  • Moderator
  • 1570
inspired wrote:
Hi,

I want to add a slider to a mobile widget (mobile_home_page_top) however it isn't in my list of available widgets.

Can you let me know how I can add this?

Many thanks,

Dave


Hi Dave,

Please refer to the online documentation of how to add a custom widget zone.

Thanks
Regards,
Nop-Templates.com Team
viveramedia
11 years ago
#2082 Quote
Avatar
  • 26
I added a widget successfully to 'mobile_home_page_top' and saw it, once the page is refreshed, I get an error:

[code] Value cannot be null.
Parameter name: first
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.ArgumentNullException: Value cannot be null.
Parameter name: first

Source Error:


Line 3:  @foreach (var widget in Model)
Line 4:  {
Line 5:      @Html.Action(widget.ActionName, widget.ControllerName, widget.RouteValues)
Line 6:  }


Source File: d:\wwwroot\nop2.7\Views\Widget\WidgetsByZone.cshtml    Line: 5

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: first]
   System.Linq.Enumerable.Union(IEnumerable`1 first, IEnumerable`1 second) +6121144
   Nop.Web.Framework.Themes.ThemeableVirtualPathProviderViewEngine.FindThemeableView(ControllerContext controllerContext, String viewName, String masterName, Boolean useCache, Boolean mobile) +1468
   Nop.Web.Framework.Themes.ThemeableVirtualPathProviderViewEngine.FindView(ControllerContext controllerContext, String viewName, String masterName, Boolean useCache) +611
   System.Web.Mvc.<>c__DisplayClassc.<FindView>b__a(IViewEngine e) +43
   System.Web.Mvc.ViewEngineCollection.Find(Func`2 lookup, Boolean trackSearchedPaths) +176
   System.Web.Mvc.ViewEngineCollection.Find(Func`2 cacheLocator, Func`2 locator) +23
   System.Web.Mvc.ViewResult.FindView(ControllerContext context) +110
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +147
   System.Collections.Generic.List`1.ForEach(Action`1 action) +13957572
   System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +33
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +613
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +613
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +613
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +613
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +613
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +613
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +263
   System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +240
   System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +28
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15
   System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +42
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15
   System.Web.Mvc.<>c__DisplayClass4.<Wrap>b__3() +15
   System.Web.Mvc.ServerExecuteHttpHandlerWrapper.Wrap(Func`1 func) +41
   System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +1783

[HttpException (0x80004005): Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+Serve
Boyko
11 years ago
#2083 Quote
Avatar
  • Moderator
  • 1570
inspired wrote:
I added a widget successfully to 'mobile_home_page_top' and saw it, once the page is refreshed, I get an error:

[code] Value cannot be null.
Parameter name: first
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.ArgumentNullException: Value cannot be null.


Hi Dave,

I guess this is because you are trying to use the plugin in the Mobile theme. Please note that our plugins are intended for the Desktop theme only. We haven't tested integrating the plugins with the Mobile theme, so we can't guarantee that the plugins will work with the Mobile theme.

Thanks
Regards,
Nop-Templates.com Team
viveramedia
11 years ago
#2085 Quote
Avatar
  • 26
Ok, thanks, it's proving to be difficult to debug as it's working fine loaclly.

Cheers,

Dave
viveramedia
11 years ago
#2112 Quote
Avatar
  • 26
I've added a slider to a widget and a category, it's appearing in the widget but not the category, can you let me know what widget in the category page it gets assigned to?

Thanks,

Dave
Boyko
11 years ago
#2113 Quote
Avatar
  • Moderator
  • 1570
inspired wrote:
I've added a slider to a widget and a category, it's appearing in the widget but not the category, can you let me know what widget in the category page it gets assigned to?

Thanks,

Dave


Hi Dave,

The widget zones is simply the place where the Slider will be shown. If you map a Slider to a given category then the Slider will be shown only on that specific category page. So it makes sense to add a Slider only to category page specific widget zones or some common widget zones that are available on the category page i.e content_before.

Thanks
Regards,
Nop-Templates.com Team