Referater

Error executing template "Designs/Dwsimple/Filepublish/FilepublishListPart.cshtml"
System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
   at System.String.Substring(Int32 startIndex, Int32 length)
   at CompiledRazorTemplates.Dynamic.RazorEngine_8e872a0bf11543579bb5d92e4c905d68.Execute() in E:\dynamicweb.net\solutions\SkovboData\nvfp.dw9.dynamicweb-cms.com\Files\Templates\Designs\Dwsimple\Filepublish\FilepublishListPart.cshtml:line 7
   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 @{ 2 var isfolder = GetString("FilepublishFileIcon").IndexOf("/dir"); 3 var m = Dynamicweb.Content.Files.Metadata.EditorFactory.GetMetadataForFile(@GetString("FilepublishFileLinkClean")); 4 string x = GetDate("FilepublishFileDatemodified").ToString("d. MMMM yyyy"); 5 6 7 string filnavn = GetString("FilepublishFileName").Substring(0, GetString("FilepublishFileName").LastIndexOf("_")); 8 string docnavn = @filnavn.Replace("-", " "); 9 string docdato = GetString("FilepublishFileName").Substring(GetString("FilepublishFileName").LastIndexOf("_")+1, GetString("FilepublishFileName").LastIndexOf(".")-GetString("FilepublishFileName").LastIndexOf("_")-1); 10 <!-- int docdato = GetString("FilepublishFileName").LastIndexOf("."); --> 11 } 12 13 14 <tr> 15 @if (isfolder == -1){ 16 <td>@GetString("title") @GetString("FilepublishFileIcon")<a href="@GetString("FilepublishFileLinkClean")"> @docnavn</td> 17 } else { 18 <td>@GetString("FilepublishFileIcon")<a href="@GetString("FilepublishFileLinkClean")"> @GetString("FilepublishFileName")</td> 19 } 20 21 <td align=right>@docdato</td> 22 23 </tr>
Dokumentnavn Dato
referat_21 2024-11-13
referat_20_2024_10 09
referat_19_2024_09 19
referat_18_2024_08 21
referat_17_2024_06 12
referat_16 2024.05.15
referat_15_2024_04 17
referat_14_2024_03 20
referat_13_2024_02 21
referat_12 2024-01-17
Referat_01 2023-11-14
referat_11 2023-10-11
referat_10 2023-09-19
referat_08 2023-08-16
referat_06 2023-06-14
referat_05 2023-05-17
Referat_04 2023-03-15
referat_03 2023-02-15
Referat_02 2023-01-18

Kontakt os

  • Nordvestfalster Pastorat
  • Find adresser, tlf.numre og mailadresser i menuen under Kontakt

 

Sociale links