Gå til hovedindhold (Tryk Enter)

Hvad sker der også på Kulturskolen

Se eller gense billeder fra arrangementer på Kulturskolen

 

 

Hvad sker der på Kulturskolen? Se billeder fra vores arrangementer og udstillinger

Kulturskolens 25 års jubilæumsforestilling

Jubilæum 2024

Se Kulturskolens 25 års jubilæumforestilling

Klik her
Error executing template "Designs/Esbjerg/Paragraph/Gallery.cshtml"
System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\Subsites\Files\Images\Kulturskolen\Jubilæumsforestillingen 2024\Kulturskolens 25 års Jubilæum - Jubilæumsdagen'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.GetAttributes(String path)
   at Dynamicweb.Content.Files.FilesPermissionHelper.HasAccessToSecureFolder(String fullPath)
   at Dynamicweb.Content.Items.Editors.FolderEditor.GetFiles(String folderPath)
   at Dynamicweb.Content.Items.Editors.FolderEditor.GetViewModelValue(Object value)
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at Dynamicweb.Frontend.ItemFieldViewModel.GetValue()
   at Dynamicweb.Frontend.ItemFieldViewModel.GetValue[T]()
   at Dynamicweb.Frontend.ItemViewModel.GetFiles(String systemName)
   at CompiledRazorTemplates.Dynamic.RazorEngine_5fdc20b3bb3d4efd96693a30d7e75707.Execute() in D:\Subsites\Files\Templates\Designs\Esbjerg\Paragraph\Gallery.cshtml:line 28
   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.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 3 4 5 @{ 6 if (!(string.IsNullOrEmpty(Model.Item.GetField("Title").GetString()))) 7 { 8 <section class="gallery-container soft-load"> 9 <div class="grid grid-container"> 10 <div class="row"> 11 <div class="col col--sm-10 col--offset-sm-1"> 12 <h3 class="gallery__headline"> 13 @Model.Item.GetField("Title").GetValue() 14 </h3> 15 <a id="@Model.ID"></a> 16 </div> 17 </div> 18 <div class="row"> 19 <div class="col col--sm-10 col--offset-sm-1"> 20 <div class="gallery" data-module="gallery"> 21 <!--This button is hidden for screenreaders, because those users gets no further information by opening modal--> 22 <button class="gallery__modal-btn" type="button" aria-hidden="true"> 23 <svg xmlns="http://www.w3.org/2000/svg" width="34.288" height="34.289" viewBox="0 0 34.288 34.289"><path d="M.005 34.287H0V22.975h1.256v9.24l15.179-15.179-15.18-15.18v9.459H0V.005h11.314v1.256H2.073l15.07 15.07L32.214 1.26h-9.24V.002h11.309v11.313h-1.256V1.856l-15.175 15.18 15.179 15.179v-9.241h1.257v11.309h-.005v.005H22.974v-1.257h9.46L17.146 17.746 1.856 33.032h9.457v1.258z"/></svg> 24 </button> 25 26 27 @{ 28 var files = Model.Item.GetFiles("Folder"); 29 } 30 @if (Model.Item.GetField("UseFolder").GetString() == "True") 31 { 32 var index = 0; 33 <div class="main-carousel"> 34 35 @foreach (var file in files) 36 { 37 var pathToFile = files[index].Path; 38 var filePath = "/admin/public/GetImage.ashx?Image=" + pathToFile; 39 <div class="carousel-cell"> 40 <div class="gallery__image-container lazy" 41 data-src-xxs="@filePath&width=440" 42 data-src-xs="@filePath&width=727" 43 data-src-sm="@filePath&width=679" 44 data-src-lg="@filePath&width=887" 45 data-src-xl="@filePath&width=970" 46 data-src-base="@filePath" 47 data-alt=""> 48 <div class="loading-icon"><div></div><div></div><div></div><div></div></div> 49 </div> 50 </div> 51 index++; 52 } 53 54 </div> 55 if (files.Count > 1) 56 { 57 <div class="gallery__index-counter"> 58 <span class="gallery__index-current">01</span> 59 <span class="gallery__index-max">01</span> 60 </div> 61 } 62 63 } 64 else 65 { 66 <div class="main-carousel"> 67 @foreach (var item in Model.Item.GetField("Media").GetItems()) 68 { 69 string mediaValue = !string.IsNullOrEmpty(item.GetString("GalleryImage")) ? item.GetString("GalleryImage") : item.GetString("GalleryVideo"); 70 string mediaPath = "/admin/public/GetImage.ashx?Image=" + mediaValue; 71 72 if (string.IsNullOrEmpty(item.GetString("GalleryVideo"))) 73 { 74 <div class="carousel-cell"> 75 <div class="gallery__image-container lazy" 76 data-src-xxs="@mediaPath&width=440" 77 data-src-xs="@mediaPath&width=727" 78 data-src-sm="@mediaPath&width=679" 79 data-src-lg="@mediaPath&width=887" 80 data-src-xl="@mediaPath&width=970" 81 data-src-base="@mediaPath" 82 data-alt='item.GetString("Gallerytext")'> 83 <div class="loading-icon"><div></div><div></div><div></div><div></div></div> 84 </div> 85 </div> 86 } 87 else 88 { 89 <div class="carousel-cell carousel-cell__video"> 90 <div style="width:100%; height:0; position: relative; padding-bottom:56.24999999296875%"> 91 <iframe class="gallery__iframe" 92 data-src="@mediaValue" 93 style="width:100%; height:100%; position: absolute; top: 0; left: 0;" 94 title='item.GetString("Gallerytext")' 95 frameborder="0" 96 border="0" 97 scrolling="no" 98 allowfullscreen="1" 99 mozallowfullscreen="1" 100 webkitallowfullscreen="1" 101 autoPlay="0" 102 socialSharing="0" 103 allow="fullscreen"></iframe> 104 <div class="loading-icon"><div></div><div></div><div></div><div></div></div> 105 </div> 106 </div> 107 } 108 } 109 </div> 110 if (Model.Item.GetField("Media").GetItems().Count > 1) 111 { 112 <div class="gallery__index-counter"> 113 <span class="gallery__index-current">01</span> 114 <span class="gallery__index-max">01</span> 115 </div> 116 } 117 118 119 } 120 121 </div> 122 </div> 123 </div> 124 </div> 125 </section> 126 127 } 128 129 }
Error executing template "Designs/Esbjerg/Paragraph/Gallery.cshtml"
System.IO.FileNotFoundException: Could not find file 'D:\Subsites\Files\Images\Kulturskolen\Jubilæumsforestillingen 2024'.
File name: 'D:\Subsites\Files\Images\Kulturskolen\Jubilæumsforestillingen 2024'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.GetAttributes(String path)
   at Dynamicweb.Content.Files.FilesPermissionHelper.HasAccessToSecureFolder(String fullPath)
   at Dynamicweb.Content.Items.Editors.FolderEditor.GetFiles(String folderPath)
   at Dynamicweb.Content.Items.Editors.FolderEditor.GetViewModelValue(Object value)
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at Dynamicweb.Frontend.ItemFieldViewModel.GetValue()
   at Dynamicweb.Frontend.ItemFieldViewModel.GetValue[T]()
   at Dynamicweb.Frontend.ItemViewModel.GetFiles(String systemName)
   at CompiledRazorTemplates.Dynamic.RazorEngine_5fdc20b3bb3d4efd96693a30d7e75707.Execute() in D:\Subsites\Files\Templates\Designs\Esbjerg\Paragraph\Gallery.cshtml:line 28
   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.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 3 4 5 @{ 6 if (!(string.IsNullOrEmpty(Model.Item.GetField("Title").GetString()))) 7 { 8 <section class="gallery-container soft-load"> 9 <div class="grid grid-container"> 10 <div class="row"> 11 <div class="col col--sm-10 col--offset-sm-1"> 12 <h3 class="gallery__headline"> 13 @Model.Item.GetField("Title").GetValue() 14 </h3> 15 <a id="@Model.ID"></a> 16 </div> 17 </div> 18 <div class="row"> 19 <div class="col col--sm-10 col--offset-sm-1"> 20 <div class="gallery" data-module="gallery"> 21 <!--This button is hidden for screenreaders, because those users gets no further information by opening modal--> 22 <button class="gallery__modal-btn" type="button" aria-hidden="true"> 23 <svg xmlns="http://www.w3.org/2000/svg" width="34.288" height="34.289" viewBox="0 0 34.288 34.289"><path d="M.005 34.287H0V22.975h1.256v9.24l15.179-15.179-15.18-15.18v9.459H0V.005h11.314v1.256H2.073l15.07 15.07L32.214 1.26h-9.24V.002h11.309v11.313h-1.256V1.856l-15.175 15.18 15.179 15.179v-9.241h1.257v11.309h-.005v.005H22.974v-1.257h9.46L17.146 17.746 1.856 33.032h9.457v1.258z"/></svg> 24 </button> 25 26 27 @{ 28 var files = Model.Item.GetFiles("Folder"); 29 } 30 @if (Model.Item.GetField("UseFolder").GetString() == "True") 31 { 32 var index = 0; 33 <div class="main-carousel"> 34 35 @foreach (var file in files) 36 { 37 var pathToFile = files[index].Path; 38 var filePath = "/admin/public/GetImage.ashx?Image=" + pathToFile; 39 <div class="carousel-cell"> 40 <div class="gallery__image-container lazy" 41 data-src-xxs="@filePath&width=440" 42 data-src-xs="@filePath&width=727" 43 data-src-sm="@filePath&width=679" 44 data-src-lg="@filePath&width=887" 45 data-src-xl="@filePath&width=970" 46 data-src-base="@filePath" 47 data-alt=""> 48 <div class="loading-icon"><div></div><div></div><div></div><div></div></div> 49 </div> 50 </div> 51 index++; 52 } 53 54 </div> 55 if (files.Count > 1) 56 { 57 <div class="gallery__index-counter"> 58 <span class="gallery__index-current">01</span> 59 <span class="gallery__index-max">01</span> 60 </div> 61 } 62 63 } 64 else 65 { 66 <div class="main-carousel"> 67 @foreach (var item in Model.Item.GetField("Media").GetItems()) 68 { 69 string mediaValue = !string.IsNullOrEmpty(item.GetString("GalleryImage")) ? item.GetString("GalleryImage") : item.GetString("GalleryVideo"); 70 string mediaPath = "/admin/public/GetImage.ashx?Image=" + mediaValue; 71 72 if (string.IsNullOrEmpty(item.GetString("GalleryVideo"))) 73 { 74 <div class="carousel-cell"> 75 <div class="gallery__image-container lazy" 76 data-src-xxs="@mediaPath&width=440" 77 data-src-xs="@mediaPath&width=727" 78 data-src-sm="@mediaPath&width=679" 79 data-src-lg="@mediaPath&width=887" 80 data-src-xl="@mediaPath&width=970" 81 data-src-base="@mediaPath" 82 data-alt='item.GetString("Gallerytext")'> 83 <div class="loading-icon"><div></div><div></div><div></div><div></div></div> 84 </div> 85 </div> 86 } 87 else 88 { 89 <div class="carousel-cell carousel-cell__video"> 90 <div style="width:100%; height:0; position: relative; padding-bottom:56.24999999296875%"> 91 <iframe class="gallery__iframe" 92 data-src="@mediaValue" 93 style="width:100%; height:100%; position: absolute; top: 0; left: 0;" 94 title='item.GetString("Gallerytext")' 95 frameborder="0" 96 border="0" 97 scrolling="no" 98 allowfullscreen="1" 99 mozallowfullscreen="1" 100 webkitallowfullscreen="1" 101 autoPlay="0" 102 socialSharing="0" 103 allow="fullscreen"></iframe> 104 <div class="loading-icon"><div></div><div></div><div></div><div></div></div> 105 </div> 106 </div> 107 } 108 } 109 </div> 110 if (Model.Item.GetField("Media").GetItems().Count > 1) 111 { 112 <div class="gallery__index-counter"> 113 <span class="gallery__index-current">01</span> 114 <span class="gallery__index-max">01</span> 115 </div> 116 } 117 118 119 } 120 121 </div> 122 </div> 123 </div> 124 </div> 125 </section> 126 127 } 128 129 }
Error executing template "Designs/Esbjerg/Paragraph/Gallery.cshtml"
System.IO.FileNotFoundException: Could not find file 'D:\Subsites\Files\Images\Kulturskolen\K-klasser Projektuge 23'.
File name: 'D:\Subsites\Files\Images\Kulturskolen\K-klasser Projektuge 23'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.GetAttributes(String path)
   at Dynamicweb.Content.Files.FilesPermissionHelper.HasAccessToSecureFolder(String fullPath)
   at Dynamicweb.Content.Items.Editors.FolderEditor.GetFiles(String folderPath)
   at Dynamicweb.Content.Items.Editors.FolderEditor.GetViewModelValue(Object value)
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at Dynamicweb.Frontend.ItemFieldViewModel.GetValue()
   at Dynamicweb.Frontend.ItemFieldViewModel.GetValue[T]()
   at Dynamicweb.Frontend.ItemViewModel.GetFiles(String systemName)
   at CompiledRazorTemplates.Dynamic.RazorEngine_5fdc20b3bb3d4efd96693a30d7e75707.Execute() in D:\Subsites\Files\Templates\Designs\Esbjerg\Paragraph\Gallery.cshtml:line 28
   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.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 3 4 5 @{ 6 if (!(string.IsNullOrEmpty(Model.Item.GetField("Title").GetString()))) 7 { 8 <section class="gallery-container soft-load"> 9 <div class="grid grid-container"> 10 <div class="row"> 11 <div class="col col--sm-10 col--offset-sm-1"> 12 <h3 class="gallery__headline"> 13 @Model.Item.GetField("Title").GetValue() 14 </h3> 15 <a id="@Model.ID"></a> 16 </div> 17 </div> 18 <div class="row"> 19 <div class="col col--sm-10 col--offset-sm-1"> 20 <div class="gallery" data-module="gallery"> 21 <!--This button is hidden for screenreaders, because those users gets no further information by opening modal--> 22 <button class="gallery__modal-btn" type="button" aria-hidden="true"> 23 <svg xmlns="http://www.w3.org/2000/svg" width="34.288" height="34.289" viewBox="0 0 34.288 34.289"><path d="M.005 34.287H0V22.975h1.256v9.24l15.179-15.179-15.18-15.18v9.459H0V.005h11.314v1.256H2.073l15.07 15.07L32.214 1.26h-9.24V.002h11.309v11.313h-1.256V1.856l-15.175 15.18 15.179 15.179v-9.241h1.257v11.309h-.005v.005H22.974v-1.257h9.46L17.146 17.746 1.856 33.032h9.457v1.258z"/></svg> 24 </button> 25 26 27 @{ 28 var files = Model.Item.GetFiles("Folder"); 29 } 30 @if (Model.Item.GetField("UseFolder").GetString() == "True") 31 { 32 var index = 0; 33 <div class="main-carousel"> 34 35 @foreach (var file in files) 36 { 37 var pathToFile = files[index].Path; 38 var filePath = "/admin/public/GetImage.ashx?Image=" + pathToFile; 39 <div class="carousel-cell"> 40 <div class="gallery__image-container lazy" 41 data-src-xxs="@filePath&width=440" 42 data-src-xs="@filePath&width=727" 43 data-src-sm="@filePath&width=679" 44 data-src-lg="@filePath&width=887" 45 data-src-xl="@filePath&width=970" 46 data-src-base="@filePath" 47 data-alt=""> 48 <div class="loading-icon"><div></div><div></div><div></div><div></div></div> 49 </div> 50 </div> 51 index++; 52 } 53 54 </div> 55 if (files.Count > 1) 56 { 57 <div class="gallery__index-counter"> 58 <span class="gallery__index-current">01</span> 59 <span class="gallery__index-max">01</span> 60 </div> 61 } 62 63 } 64 else 65 { 66 <div class="main-carousel"> 67 @foreach (var item in Model.Item.GetField("Media").GetItems()) 68 { 69 string mediaValue = !string.IsNullOrEmpty(item.GetString("GalleryImage")) ? item.GetString("GalleryImage") : item.GetString("GalleryVideo"); 70 string mediaPath = "/admin/public/GetImage.ashx?Image=" + mediaValue; 71 72 if (string.IsNullOrEmpty(item.GetString("GalleryVideo"))) 73 { 74 <div class="carousel-cell"> 75 <div class="gallery__image-container lazy" 76 data-src-xxs="@mediaPath&width=440" 77 data-src-xs="@mediaPath&width=727" 78 data-src-sm="@mediaPath&width=679" 79 data-src-lg="@mediaPath&width=887" 80 data-src-xl="@mediaPath&width=970" 81 data-src-base="@mediaPath" 82 data-alt='item.GetString("Gallerytext")'> 83 <div class="loading-icon"><div></div><div></div><div></div><div></div></div> 84 </div> 85 </div> 86 } 87 else 88 { 89 <div class="carousel-cell carousel-cell__video"> 90 <div style="width:100%; height:0; position: relative; padding-bottom:56.24999999296875%"> 91 <iframe class="gallery__iframe" 92 data-src="@mediaValue" 93 style="width:100%; height:100%; position: absolute; top: 0; left: 0;" 94 title='item.GetString("Gallerytext")' 95 frameborder="0" 96 border="0" 97 scrolling="no" 98 allowfullscreen="1" 99 mozallowfullscreen="1" 100 webkitallowfullscreen="1" 101 autoPlay="0" 102 socialSharing="0" 103 allow="fullscreen"></iframe> 104 <div class="loading-icon"><div></div><div></div><div></div><div></div></div> 105 </div> 106 </div> 107 } 108 } 109 </div> 110 if (Model.Item.GetField("Media").GetItems().Count > 1) 111 { 112 <div class="gallery__index-counter"> 113 <span class="gallery__index-current">01</span> 114 <span class="gallery__index-max">01</span> 115 </div> 116 } 117 118 119 } 120 121 </div> 122 </div> 123 </div> 124 </div> 125 </section> 126 127 } 128 129 }