Sitecore IFrame显示“页面编辑器"功能区 [英] Sitecore IFrame displays Page Editor ribbon

查看:128
本文介绍了Sitecore IFrame显示“页面编辑器"功能区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将iframe集成到Sitecore模板中. 我已经创建了ASPX页面,并将其添加到Sitecore模板的iframe中. (例如/sitecore/content/Custom Editors/SampleIFrameEditor)

I am working on integrating an iframe to a Sitecore template. I have created the ASPX page and added that to the iframe in Sitecore template. (e.g. /sitecore/content/Custom Editors/SampleIFrameEditor)

它工作正常,我可以看到我的ASPX页面在iframe控件中呈现.唯一的问题是它在顶部显示了页面编辑器"功能区控件(Home Advanced Expereience ...),我不需要显示该控件. (就像我在页面编辑器中打开它一样.)

It works fine, I can see my ASPX page gets rendered in the iframe control. Only issue is that it shows the "Page Editor" ribbon control on top (Home Advanced Expereience...), which I do not need to be displayed. (It's like I opened it up in Page Editor.)

如何在这种情况下隐藏页面编辑器"选项?

How can I hide "Page Editor" options from this scenario?

推荐答案

您可以将?sc_mode=normal作为查询字符串添加到iframe src URL.

You could add ?sc_mode=normal as a query string to your iframe src URL.

这篇关于Sitecore IFrame显示“页面编辑器"功能区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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