sitecore

Sitecore Redirect module Regex Pattern Matching

北慕城南 提交于 2019-12-24 07:49:49
问题 Using the 301 Redirect Module for Sitecore 7, I'm having a problem establishing the proper Requested Expression and Source values to use in the Sitecore Redirect Module. I have an example url that is typically getting request that I want redirected to the home page of the site. The example url requests all contain excite.com at the end of the URL: https://www.example.com/products/foods/apples/excite.com https://www.example.com/products/foods/oranges/excite.com https://www.example.com/products

Sitecore Images (ASHX extensions) not being picked up by IIS 5.1 or IIS7 Express- Getting 404 Instead

ぐ巨炮叔叔 提交于 2019-12-24 07:32:46
问题 At the moment I have no images being picked up at the moment, and this is off a completely default Sitecore Xpress install. I think this version is based on a 6.0 release I have installed it on a XP machine (no images) and then tried running it through WebMatrix, still with no images. I am at a loss really, and I have been grasping at straws a little. 回答1: Unfortunately I don't have much expirience with the Xpress edition. But one thing is that you need to have the mime-types setup on the

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

Custom RTE Dropdown in Sitecore 7.0

一世执手 提交于 2019-12-24 05:21:34
问题 My client desires to have a dropdown similar to Symbols Dropdown in the RTE (sitecore version 7.0). The client wants different dropdowns for different symbol types, for example, a dropdown having Greek Symbols Upper case, a dropdown having Greek Symbols Lower case, a dropdown having Mathematical Symbols and a dropdown having Other/Misc types of symbols. I have tried to understand how RadControls work and how to add this on Telerik RadControl but I am unable to map the concept to sitecore's

Custom RTE Dropdown in Sitecore 7.0

佐手、 提交于 2019-12-24 05:21:14
问题 My client desires to have a dropdown similar to Symbols Dropdown in the RTE (sitecore version 7.0). The client wants different dropdowns for different symbol types, for example, a dropdown having Greek Symbols Upper case, a dropdown having Greek Symbols Lower case, a dropdown having Mathematical Symbols and a dropdown having Other/Misc types of symbols. I have tried to understand how RadControls work and how to add this on Telerik RadControl but I am unable to map the concept to sitecore's

How to determine in sitecore whether given item is start item?

邮差的信 提交于 2019-12-24 05:05:39
问题 In config file we set start item for each website in element (e.g. startItem="/Home"). And we also can select start item in code. But what I am asking about is how to determine for any selected item whether it is start item or not? At least we can select start item and compare with given item, but it is not elegant code I think 回答1: We typically have an extension method on the SiteContext class to get the Home Item: public static class SiteExtensions { public static Item GetHomeItem(this

Sitecore MVC form postback does not return a full layout

前提是你 提交于 2019-12-24 03:35:20
问题 i'm using Sitecore 7 with MVC enabled. I have a cshtml layout that has a header, menu, footer and placeholder in it. When i submit a form in the page with POST method, it gets to the controller and the controller is returning a viewresult for some reason only that particular html from the viewresult gets rendered to the page. Meaning that after doing a postback the header, menu, footer is gone and only the html from the result gets rendered on the page. Is this behaviour expected or am i

Sitecore MVC form postback does not return a full layout

て烟熏妆下的殇ゞ 提交于 2019-12-24 03:35:12
问题 i'm using Sitecore 7 with MVC enabled. I have a cshtml layout that has a header, menu, footer and placeholder in it. When i submit a form in the page with POST method, it gets to the controller and the controller is returning a viewresult for some reason only that particular html from the viewresult gets rendered to the page. Meaning that after doing a postback the header, menu, footer is gone and only the html from the result gets rendered on the page. Is this behaviour expected or am i