sitecore

How to provide email notifications/workflows for clones

孤街醉人 提交于 2019-12-07 14:01:15
问题 We want to set up a system where administrators of clones receive email notification when the item their clone was cloned from is updated. There will be multiple clones created from this item and ideally we'd like to filter notification by language (so administrators of an English clone don't receive notifications when the French version is updated). Is there a simple way to implement any of this inside a workflow? If so, which even should I try and hook a workflow action to? Will I need to

Sitecore - Multiple-Site Error Page Handling

戏子无情 提交于 2019-12-07 13:56:03
问题 I have a multiple-site Sitecore project. I know how to deal with error pages via the webconfig's ErrorPage, ItemNotFoundUrl, LayoutNotFoundUrl, LinkItemNotFoundUrl for one site. However, I'm wanting to display a different error pages for each site. How can I accomplish this? 回答1: In any case, you can probably store the URLs of the error pages for each site as attributes of the /configuration/sitecore/sites/site elements in web.config by extending the Sitecore.Sites.SiteContext class (see for

Lucene Indexes in Sitecore getting corrupted (ArgumentOutOfRangeException)

白昼怎懂夜的黑 提交于 2019-12-07 13:26:11
问题 We are having an issue with searching a Lucene Index in Sitecore. Everything works fine for a while, and then, after what appears to be a random amount of time, we start getting the following error on every single search against the index: System.ArgumentOutOfRangeException Message: Non-negative number required. Parameter name: capacity Source: mscorlib at System.Collections.Hashtable..ctor(Int32 capacity, Single loadFactor) at System.Collections.Hashtable.Clone() at SupportClass

Sitecore CustomValidator does not fire on WFFM custom field

浪尽此生 提交于 2019-12-07 12:48:20
问题 I've try to extend SingleLineText field on WFFM on Sitecore. This field will have CustomValidator. But ServerValidate event does not fire when page postbacked. The snipped code below. public class SingleLineText : Sitecore.Form.Web.UI.Controls.SingleLineText { protected override void OnInit(EventArgs e) { base.OnInit(e); var validator = new CustomValidator() { Display = ValidatorDisplay.None }; validator.ServerValidate += this.Validator_ServerValidate; this.generalPanel.Controls.Add(validator

sitecore page editor change position actually deleting sublayout added on an item(Page)

混江龙づ霸主 提交于 2019-12-07 11:40:37
I have a layout with two place holders leftColumn and rightColumn. For an item i am adding multiple sublayouts for leftcolumn and multiple sublayouts for rightcolumn. Now in page editor when i am trying to change position using "Change Position" button in toolbar and move content to another location, content is getting moved to my new location as desired. But when i click Save button on Ribbon, it is actually deleting moved content from presentation itself. I am not sure why it is behaving like this. we are using Sitecore 6.4 We opened a ticket with Sitecore and found out that this is an

Sitecore - ControllerRendering complaining about Controller “not found or does not implement IController.”

十年热恋 提交于 2019-12-07 08:30:29
问题 So I have created my Controller Rendering, that uses controller Sitecore.Social.Twitter.Client.Mvc.Areas.Social.Controllers.TwitterConnectorController like so: But when I try to access the page, I get an error complaining about the Controller not being controller enough: But if I inspect the dll with the Object Viewer, the controller in question indeed inherits from IController: So, what is going on here? Why am I receiving this error? EDIT: I suspect that perhaps the error message is merely

How to enable workflow state 'write' on selected item?

守給你的承諾、 提交于 2019-12-07 07:55:05
问题 Some items don't have write access right due to workflow state write not being granted. When I click write access right in Access Viewer Access Viewer informs me that selected user don't have access right due to workflowstate write acess right: Unfortunately I'm not able to set it 'manualy' through security editor: Can anyone shed some light on this ? Thanks 回答1: Browse to the item which represents this workflow state. According to your sample, it should be /sitecore/system/workflow

Sitecore - rewrite “ ” to “-” in urls but still allow dashes as legal item names

时光总嘲笑我的痴心妄想 提交于 2019-12-07 06:05:42
问题 I've read a half dozen guides on rewriting spaces to something more friendly in Sitecore, but all of them rely on Sitecore's <encodeNameReplacements/> element which also reverses the replacement requiring "-" to be an illegal character for names. The problem with this is that the url of our application has a "-" in the hostname. Sitecore rewrites this resulting in a 404. Does anyone have ideas on how to do this url rewriting in Sitecore without relying on <encodeNameReplacements and still

Save Return Error in Sitecore Page Editor

☆樱花仙子☆ 提交于 2019-12-07 05:36:30
问题 I get an error when save a page in page editor.. Somehow when I edited the page from presentation > detail and display it in page editor it works fine.. The error logs is in below here.. ERROR After parsing a value an unexpected character was encountered: {. Path 'scLayout', line 38, position 85. Exception: Newtonsoft.Json.JsonReaderException Message: After parsing a value an unexpected character was encountered: {. Path 'scLayout', line 38, position 85. Source: Newtonsoft.Json at Newtonsoft

Sitecore MVC and FieldRenderer.Render for Links

a 夏天 提交于 2019-12-07 04:56:22
问题 I'm trying to render a general link field like this - FieldRenderer.Render(item, "link") . This works as expected but how do I set custom text within the a tag that gets rendered. I want my output to look something like this <a href="[link from sitecore]">[custom text from another field]</a> Basically, the text for the link should come from another field on the item. Thanks 回答1: You probably want to try the following: @Html.Sitecore().BeginField("Link Field") //custom code @Html.Sitecore()