2
votes

I am using a simple MVC sitecore project. I just given only one field in rendering page. When i try to view in "Experience Editor" its showing some raw JSON Data like below.enter image description here

I have used this post

to solve this. when i include that webedit.css in my main layout then the Raw data vanished. But i am not able to see the Editing Ribbon. But when i choose Experience Editor from desktop its showing all Default contents correctly along with the editing Ribbon(Default Page).

Can anyone tell me why i am not able to see that editing ribbon on my page?

1
It's always like that? Or just after a save?Chris van de Steeg
Seems like you have a buggy deployment. If this a new project? Does it happen on a clean install of Sitecore?jammykam
Yes its happend on a clean install of Sitecore. And its always like that only.Ramesh
if this is data from template field, did you pass the data as HtmlString or call the dataType as @Html.Raw("")??Jihyun

1 Answers

1
votes

This is because your layout razor cshtml file has valid HTML markup skeleton in place. Please make sure at the very minimum your page is formatted like this:

@using Sitecore.MVC

<html>
    <body>
         @Html.Sitecore().Etc...
         etc...
    </body>
</html>

This should eliminate the big chunk of JSON on top and enable all page editor UI elements.