SiteCore-页面上显示控件应在页面编辑器中显示的JSON [英] SiteCore - JSON showing on the pages where controls should be in the page editor

查看:126
本文介绍了SiteCore-页面上显示控件应在页面编辑器中显示的JSON的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在页面编辑器中,并且看到编辑器控件应位于的JSON

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":选择 图片," icon:"/〜/icon/SoftwareV2/16x16/photo_landscape.png.aspx," isDivider:false," tooltip:"选择 一个 image," type:null},{" click:" chrome:field:editcontrol({command:\"webedit:editimage \"})","header":属性","icon":"/〜/icon/SoftwareV2/16x16/palette_preferences.png.aspx," isDivider:false," tooltip:"修改 图像 外观,"类型:null},{"点击:" chrome:common:edititem({command:\"webedit:open \"})",标题":编辑 相关的 item," icon:"/temp/IconCache/SoftwareV2/16x16/cubes_blue.png," isDivider:false," tooltip:"编辑 内容中的此项 编辑器.," type:" common}]," contextItemUri:" sitecore://master/{2D90E98C-1360-4EBA-855E-3B321B053376}?lang = en& ver = 1," custom: {},"displayName":徽标","expandedDisplayName":空}

{"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.

推荐答案

已解决.这是因为我删除了<从页面上获取表单method ="post" runat ="server" id ="mainform">.重新添加回去.最好让它成为<下的第一个孩子.身体>

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 >

这篇关于SiteCore-页面上显示控件应在页面编辑器中显示的JSON的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆