Error executing template "/Designs/Swift/Paragraph/Swift_BreadcrumbNavigation_Custom.cshtml"
System.NullReferenceException: Object reference not set to an instance of an object.
   at Dynamicweb.Content.PageService.GetAncestors(Int32 pageId, Boolean includingSelf)
   at CompiledRazorTemplates.Dynamic.RazorEngine_e0c36314129347e6974c1e5b60531e41.Execute() in C:\inetpub\solutions\Goecker-2022-Prod\Files\Templates\Designs\Swift\Paragraph\Swift_BreadcrumbNavigation_Custom.cshtml:line 22
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.<RunCompile>b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.RazorTemplateRenderingProvider.Render(Template template)
   at Dynamicweb.Rendering.TemplateRenderingService.Render(Template template)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 @using Dynamicweb.Frontend.Navigation 3 @using Dynamicweb.Core 4 @using Dynamicweb.Ecommerce.ProductCatalog 5 @using Dynamicweb.Content 6 @using Dynamicweb.Frontend 7 @using System 8 9 @* CUSTOMIZED STANDARD SWIFT (v1.15.0) TEMPLATE *@ 10 11 @{ 12 ProductViewModel product = new ProductViewModel(); 13 if (Dynamicweb.Context.Current.Items.Contains("ProductDetails")) 14 { 15 product = (ProductViewModel)Dynamicweb.Context.Current.Items["ProductDetails"]; 16 } 17 string contentPageLink = Converter.ToString(Dynamicweb.Ecommerce.Services.ProductGroups.GetGroup(product.PrimaryOrDefaultGroup.Id)?.ProductGroupFieldValues.GetProductGroupFieldValue("ProductContentPage").Value); 18 int contentPageId = Converter.ToInt32(contentPageLink.Split('=').Last()); 19 20 if (contentPageId != 0) 21 { 22 IEnumerable<Dynamicweb.Content.Page> contentPageAncestors = Dynamicweb.Services.Pages.GetAncestors(contentPageId, true); 23 24 List<Dynamicweb.Content.Page> breadcrumbs = new List<Dynamicweb.Content.Page>(); 25 for (int i = contentPageAncestors.Count() - 1; i > 0; i--) 26 { 27 var page = contentPageAncestors.ElementAt(i); 28 if (page.ShowInSitemap) 29 { 30 breadcrumbs.Add(page); 31 } 32 else 33 { 34 break; 35 } 36 } 37 38 <ol class="breadcrumb small mb-0"> 39 @foreach (Dynamicweb.Content.Page page in breadcrumbs.Reverse<Dynamicweb.Content.Page>()) 40 { 41 string link = Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?Id=" + page.ID); 42 <li class="breadcrumb-item"> 43 <a href="@link">@page.MenuText</a> 44 </li> 45 } 46 </ol> 47 } 48 } 49 50 51

GOPRO PROTECTIVE HOUSING FOR HERO BLACK

GOPROADDIV-001
450,00 DKK InStock
  • Onlinelager (1-2 dages lev.) På lager
  • Århus (Click & Collect) Ikke på lager
  • København (Click & Collect) På lager

Morten H. Vorsaa
mv@goecker.dk
35 86 51 41
Aarhus

Personlig rådgivning

Få hjælp af vores specialister

Fri fragt over 500 kr.

På ordrer leveret i Danmark

Over 160 års erfaring

Foto og video siden 1862

Beskrivelse

GoPro Protective Housing For HERO Black

  • Protects your GoPro HERO from mud, dirt and debris during extreme activities
  • Front LCD screen remains accessible for viewing
  • Waterproof down to 60m (196ft) perfect for deep-water diving
  • Includes a skeleton backdoor for improved audio capture and easy access to the camera’s touch screen
  • A flat glass lens makes for sharp, high-quality images above and below water

HERO Black cameras are rugged and waterproof right out of the box, but this housing handles anything you can throw at it. It protects from dirt and flying debris, and it’s waterproof down to 196ft (60m) for deep-water diving.

Compatibility:

  • GoPro HERO 13 Black
  • GoPro HERO 12 Black
  • GoPro HERO 11 Black
  • GoPro HERO 10 Black
  • GoPro HERO 9 Black

Specifikationer

Producent GoPro
Kategori Action cam tilbehør