SiteCore - JSON showing on the pages where controls should be in the page editor

怎甘沉沦 提交于 2019-12-13 02:37:19

问题


I'm in the page editor and I'm seeing JSON where editor controls should be

{"commands":[{"click":"chrome:field:editcontrol({command:\"webedit:chooseimage\"})","header":"Choose Image","icon":"/~/icon/SoftwareV2/16x16/photo_landscape.png.aspx","isDivider":false,"tooltip":"Choose an image","type":null},{"click":"chrome:field:editcontrol({command:\"webedit:editimage\"})","header":"Properties","icon":"/~/icon/SoftwareV2/16x16/palette_preferences.png.aspx","isDivider":false,"tooltip":"Modify image appearance","type":null},{"click":"chrome:common:edititem({command:\"webedit:open\"})","header":"Edit the related item","icon":"/temp/IconCache/SoftwareV2/16x16/cubes_blue.png","isDivider":false,"tooltip":"Edit this item in the Content Editor.","type":"common"}],"contextItemUri":"sitecore://master/{2D90E98C-1360-4EBA-855E-3B321B053376}?lang=en&ver=1","custom":{},"displayName":"Logo","expandedDisplayName":null}

This is happening in the page editor but not when I view the site.


回答1:


Solved. It was because I removed the < form method="post" runat="server" id="mainform" > from the page. Added it back in. Best if you make it the first child under < body >




回答2:


I also recently encountered this issue and the resolution for me was to make sure the 'webedit.css' file existed at the location specified by the 'WebEdit.ContentEditorStylesheet' setting.

By default the webedit.css file is located at the root of your site, but in my instance the file had been moved.




回答3:


We had this error because of commented out HTML above the DOCTYPE declaration. Removing the commented out HTML fixed the problem.



来源:https://stackoverflow.com/questions/5237344/sitecore-json-showing-on-the-pages-where-controls-should-be-in-the-page-editor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!