page-editor

jwPlayer causes rendering not to load in Sitecore's Page Editor

故事扮演 提交于 2020-01-04 03:52:08
问题 I'm currently working on a rendering in Sitecore 7.2 (MVC) that will show a jwPlayer given a link to a video (either in the Media Library or from an external source, like YouTube). When I add the rendering (with a valid data source) through Presentation Details in the Content Editor everything looks fine, and works perfectly. The trouble that I'm running into right now, though, is that when I try to do the same thing from the Page Editor (with the exact same rendering and data source),

Proper Page Editor for General Link in Sitecore

血红的双手。 提交于 2019-12-24 15:14:07
问题 Can you help me get the General Link field working in the Sitecore Page Editor. I can see a small helper "Insert link" and after clicking on it, the "Insert an internal link" form will popup. This happens by default when I'm in edit mode in the page editor This works fine however I also need to be able to "Insert an external link" from the Page editor. I know that this can be achieved in admin part of Sitecore, but how this behavior can be achieved in Page Editor? Is it possible to setup

Sitecore Rich Text links not user friendly when rendered through Glass

為{幸葍}努か 提交于 2019-12-24 07:16:57
问题 I have a component that includes a single Rich Text field. In the sublayout, the field is rendered as an Html.Editable with Glass so that it can be edited on the page in PageEditor. It looks like this: public override void Initialize() { litBodyContent.Text = Html.Editable(GlassItem, item => item.Body); } <div style="min-height: 38px"> <asp:Literal runat="server" ID="litBodyContent" /> </div> However, when I insert links using the Rich Text editor, when the page is rendered (in normal view

Add buttons/dropdownlist to sitecore webedit editor?

蹲街弑〆低调 提交于 2019-12-24 06:41:06
问题 Is it possible to add more buttons or a dropdownlist to the webedit editor when you are viewing the page in the page editor in sitecore? If you look at the image below I would like to add a "H2" button in the toolbar. 回答1: You need to add it to /sitecore/system/Settings/Html Editor Profiles/Rich Text Default/WebEdit Buttons/ . And, to create a h2-button, enter the following into the Click field of the new item: chrome:field:execute({command:"FormatBlock", userInterface:true, value:'h2'}) ('h2

Add buttons/dropdownlist to sitecore webedit editor?

孤人 提交于 2019-12-24 06:41:04
问题 Is it possible to add more buttons or a dropdownlist to the webedit editor when you are viewing the page in the page editor in sitecore? If you look at the image below I would like to add a "H2" button in the toolbar. 回答1: You need to add it to /sitecore/system/Settings/Html Editor Profiles/Rich Text Default/WebEdit Buttons/ . And, to create a h2-button, enter the following into the Click field of the new item: chrome:field:execute({command:"FormatBlock", userInterface:true, value:'h2'}) ('h2

Sitecore: Detect user in Page Editor mode

醉酒当歌 提交于 2019-12-23 07:49:51
问题 Can I know how to detect user is in page editor mode using code? This is because, I have a component, when user browses from page editor, it will search in master_index folder instead of web_index folder. 回答1: Please check with : if (Sitecore.Context.PageMode.IsPageEditorEditing) also is working on Sitecore 6.6, it not depends on Sitecore 7. Please check also this Sitecore blog post by Martina Welander. To check if is normal page use: if (Sitecore.Context.PageMode.IsNormal) To check if is

In Sitecore, how to change or set PageMode

断了今生、忘了曾经 提交于 2019-12-23 03:46:11
问题 In Sitecore, I have users who are using the editing ribbon to add content to pages. However, there are some pages that I want to prevent EditMode completely from that user's role. This is based off of a branch template, so I can't just revoke privileges for each page. I need some way to set the Sitecore.Context.PageMode to be Normal. Is there an API for setting the PageMode? 回答1: While I was unable to find a C# API, I did find that I could just use a URL Redirect that looks something like

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

Sitecore MVC Ensure empty placeholder is selectable in experience editor

☆樱花仙子☆ 提交于 2019-12-12 18:16:48
问题 Is there some trick with placeholders in Sitecore MVC to ensure that they are always selectable in the page editor experience editor even when they don't contain any renderings? My controller rendering declares the placeholder in the cshtml view as follows: <div> <!-- some html markup and fields rendered here --> @Html.Sitecore().Placeholder("my-component-placeholder") </div> 回答1: To ensure placeholder visibility and selectability, you need to ensure the following: A placeholder settings item

jcarousel plugin is not working in sitecore preview mode

折月煮酒 提交于 2019-12-12 11:05:41
问题 jcarousel plugin is working when we run the page on browser but if we run the same page in sitecore preview mode(In sitecore: Click on Presentation in the top menu. Click on Preview in the ribbon) then this plugin is not working. please let me know if you have solution that would be helpful. 回答1: Which version of Sitecore do you use? I think the problem might be with jquery conflicting with prototype . You can try to use jquery in noConflict mode: var $j = jQuery.noConflict(); In nutshell,