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

CANON EYECUP ER-IE FOR EOS R1

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

Lars Thestrup
lars@goecker.dk
35 86 51 06
København

Kenneth Lauritzen
kenneth@goecker.dk
35 86 51 26
København

Bo Christensen
bc@goecker.dk
35 86 51 44
Aarhus

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

Canon Eyecup ER-IE for EOS R1

  • Compatible with EOS R1
  • Prevents stray light from entering your viewfinder and causing glare
  • Protect viewfinder against dust and moisture
  • Can resist minor impact and scratches
  • Comfortable to the eye, and well suited to those who wear glasses
  • Lightweight and easy to secure to the camera
  • Large eyecup has dimensions of 6.75 x 5.5 x 11.3mm
  • Large asymmetrical design adds comfort

The Canon ER-iE large eyecup is designed to prevent stray light from entering your viewfinder and causing glare. This is particularly useful if the photographer is wearing glasses, as it makes for more comfortable viewing.
It can also prevent dust and moisture build up on your viewfinder as well, improving visibility. This eye cup is large, making it more comfortable and suitable for use in the brightest environments. Finally, the Canon ER-iE eyecup is compatible with EOS R1.

Specifikationer

Producent Canon
Kategori Øjestykke