I'm trying to loop items with a file include. Basicly i'm trying to make a simple paragraph container like the one in Rapido
I got the following error
Exception in template (Designs/Simple/Paragraph/ParagraphContainer.cshtml): System.ArgumentException: No template could be resolved with name 'Paragraphs.cshtml' at RazorEngine.Templating.TemplateBase.Include(String cacheName, Object model) at RazorEngine.Templating.TemplateBase`1.Include(String cacheName, Object model) at CompiledRazorTemplates.Dynamic.dafafcfbbdfe.Execute() at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context) at RazorEngine.Templating.TemplateService.Run(ITemplate template, DynamicViewBag viewBag) at RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName) at RazorEngine.Razor.Parse[T](String razorTemplate, T model, String cacheName) at Dynamicweb.Rendering.Template.RenderRazorTemplate()
@inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> @foreach(var i in(GetLoop("Item.Paragraphs"))){ Include("Paragraphs.cshtml"); }
I have attached the template files used