|
9 | 9 | <header> |
10 | 10 | <div class="content"> |
11 | 11 | <h1>@ViewBag.Title</h1> |
12 | | - <p>For your sample app to work, you should have a Kentico Cloud project containing content. Your app should be then configured with its project ID. You can either get it by signing in using your Kentico Cloud credentials or by signing up for a trial. Later, it will be converted to a free plan.</p> |
| 12 | + <p>For your sample app to work, you should have a Kentico Kontent project containing content. Your app should be then configured with its project ID. You can either get it by signing in using your Kentico Kontent credentials or by signing up for a trial. Later, it will be converted to a free plan.</p> |
13 | 13 | </div> |
14 | 14 | </header> |
15 | 15 | @Html.Partial("_MessagesPartial") |
16 | 16 |
|
17 | 17 | <script type="text/javascript"> |
18 | | - function openKenticoCloud() { |
| 18 | + function openKenticoKontent() { |
19 | 19 | var w = 800; |
20 | 20 | var h = 800; |
21 | 21 | var left = (window.screen.width / 2) - ((w / 2) + 10); |
22 | 22 | var top = (window.screen.height / 2) - ((h / 2) + 50); |
23 | 23 |
|
24 | | - window.open("@(AppSettingProvider.KenticoCloudUrl.TrimEnd('/'))/sample-site-configuration", "Kentico Cloud", |
| 24 | + window.open("@(AppSettingProvider.KenticoKontentUrl.TrimEnd('/'))/sample-site-configuration", "Kentico Kontent", |
25 | 25 | "status=no,height=" + w + ",width=" + h + ",resizable=yes,left=" |
26 | 26 | + left + ",top=" + top + ",screenX=" + left + ",screenY=" |
27 | 27 | + top + ",toolbar=no,menubar=no,location=no,directories=no"); |
|
30 | 30 | window.addEventListener("message", receiveMessage, false); |
31 | 31 |
|
32 | 32 | function receiveMessage(event) { |
33 | | - if (event.origin.toLowerCase() !== "@(AppSettingProvider.KenticoCloudUrl.TrimEnd('/').ToLower())") |
| 33 | + if (event.origin.toLowerCase() !== "@(AppSettingProvider.KenticoKontentUrl.TrimEnd('/').ToLower())") |
34 | 34 | return; |
35 | 35 |
|
36 | 36 | if (!event.data.projectGuid) |
|
46 | 46 | <section> |
47 | 47 | <h2>Get a Project ID</h2> |
48 | 48 | <p>You may wish to either select from existing projects or create a new sample project. The app will be configured with its project ID.</p> |
49 | | - <input type="submit" class="button-secondary" onclick="openKenticoCloud()" value="Get Project ID from Kentico Cloud" /> |
| 49 | + <input type="submit" class="button-secondary" onclick="openKenticoKontent()" value="Get Project ID from Kentico Kontent" /> |
50 | 50 | @using (Html.BeginForm("UseSelected", "SelfConfig", FormMethod.Post, new { id = "set-configuration-from-kc" })) |
51 | 51 | { |
52 | 52 | @Html.HiddenFor(m => m.ProjectGuid, new { id = "project-guid-from-kc" }) |
|
0 commit comments