November Happy Hour will be moved to Thursday December 5th.

Custom edit view fails to load episerver.shared.js in Episerver 7.5

Vote:
 

Hi!

I have made a small custom view for Episerver 7.5 edit where I use dojo but one file fails to load.

This is my layout file:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<>html lang="en" class="">
<>head>
    <>title>title>
    <>meta charset="utf-8">
    <>meta http-equiv="X-UA-Compatible" content="IE=edge">
    <>meta name="viewport" content="width=device-width, initial-scale=1">
 
    <>link href="@Url.Content(EPiServer.Shell.Paths.ToShellClientResource("ClientResources/epi/themes/legacy/ShellCore.css"))" rel="stylesheet" type="text/css" />
    <>link href="@Url.Content(EPiServer.Shell.Paths.ToShellClientResource("ClientResources/epi/themes/legacy/DojoDashboardCompatibility.css"))" rel="stylesheet" type="text/css" />
    <>link href="@Url.Content(EPiServer.Shell.Paths.ToShellClientResource("ClientResources/epi/themes/sleek/sleek.css"))" rel="stylesheet" type="text/css" />
    <>link href="@Url.Content(EPiServer.Shell.Paths.ToShellClientResource("ClientResources/epi/themes/sleek/document.css"))" rel="stylesheet" type="text/css" />
 
    <>script>
        dojoConfig = {
            async: true,
            parseOnLoad: true,
            packages: [
                {
                    name: 'dgrid',
                    location: '//cdn.rawgit.com/SitePen/dgrid/v0.3.6'
                },
                {
                    name: 'xstyle',
                    location: '//cdn.rawgit.com/kriszyp/xstyle/v0.1.2'
                },
                {
                    name: 'put-selector',
                    location: '//cdn.rawgit.com/kriszyp/put-selector/v0.3.5'
                }
            ]
        };
    script>
 
 
    <>script type="text/javascript" src="@Url.Content(EPiServer.Shell.Paths.ToShellClientResource("ClientResources/dojo/dojo.js"))">script>
    <>script type="text/javascript" src="@Url.Content(EPiServer.Shell.Paths.ToShellClientResource("ClientResources/epi/epi.js"))">script>
 
     
head>
<>body class="Sleek">
    @RenderBody()
body>
html>

When the page is loading I get this error:


Failed to load resource: the server responded with a status of 404 (Not Found)
http://test.local/episerver/Shell/3.0.1209/ClientResources/epi/shell/ui/nls/undefined/episerver.shared.js

There is an undefined where there should be a lang I guess?
If I look on the normal edit page it looks like this:

1
<>script type="text/javascript" charset="utf-8" src="/episerver/Shell/3.0.1209/ClientResources/EPi/shell/ui/nls/en-us/episerver.shared.js">script>

but in my custom page this is loaded:

1

What am I missing?

Thanks!

/Kristoffer

#171195
Edited, Nov 02, 2016 12:58
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.