sitecore

How do I email the original submitter using Workflow in Sitecore?

你离开我真会死。 提交于 2019-12-01 20:08:19
When an item is rejected by a reviewer in the workflow process, how do I inform the submitter? This seems like a very common situation, but I just see the most basic fields in the "Email Action" item: To, From, Subject, Message Is there a system variable for the user and then something for the user's email address? I'd expect it to be something like: $user.email. marto Get the Mail Workflow Action from the shared source workflow actions. Then you need to extend Populate context a little bit to make access to the last users easier. Here is my implementation on one of our recent projects:

How to limit Sitecore Language Write to only certain parts of the content tree

醉酒当歌 提交于 2019-12-01 19:30:18
In our Sitecore implementation, we have branch editors who will need language write access to both English and their native language (e.g. German). However, we have certain portions of our content tree where the English version should not be editable by those branch editors, but the native language version should. To give a specific example, if we have a product page that has some global information on it (e.g. a part number), and some localizable information on it (e.g. a description field), we're using field level security to lock down the global (part number) fields, but need a way to

Sitecore: Turning on HTML Caching blocks postback behavior

北战南征 提交于 2019-12-01 19:04:10
I have a sitecore page with an ASP dropdownlist, and the data on the form is populated from the selected value of the dropdown. When the selected item of the dropdownlist is changed, a postback is fired. In the postback, the new selected item is added to the querystring and the user is redirected (for linkability). I recently enabled HTML caching (for all sublayouts, "Vary by querystring"), and now suddenly, this mechanism no longer works. What seems to happen is I select a new dropdown item, the page appears to post back (though if I'm debugging, none of my breakpoints get hit). After that,

Sitecore: Turning on HTML Caching blocks postback behavior

我的未来我决定 提交于 2019-12-01 19:00:23
问题 I have a sitecore page with an ASP dropdownlist, and the data on the form is populated from the selected value of the dropdown. When the selected item of the dropdownlist is changed, a postback is fired. In the postback, the new selected item is added to the querystring and the user is redirected (for linkability). I recently enabled HTML caching (for all sublayouts, "Vary by querystring"), and now suddenly, this mechanism no longer works. What seems to happen is I select a new dropdown item,

tracking NullReferenceExceptions in sitecore

谁说胖子不能爱 提交于 2019-12-01 16:43:19
问题 i'm trying to track a NullReferenceException that shows up on sitecore 6.5 at loading any webpage: [NullReferenceException: Object reference not set to an instance of an object.] Sitecore.Diagnostics.Log.Error(String message, Exception exception, Type ownerType) +133 Sitecore.Diagnostics.Log.Error(String message, Type ownerType) +45 Sitecore.Configuration.Factory.LoadAutoIncludeFiles(ConfigPatcher patcher, String folder) +680 Sitecore.Configuration.Factory.LoadAutoIncludeFiles(XmlNode element

In Sitecore, when adding a field to a template, there's a checkbox called “shared”. What's it for?

早过忘川 提交于 2019-12-01 15:51:09
This seems like a stupid question, but the closest answer I could find in the sitecore docs I have (online and offline), is that shared fields are "shared across languages". I took that to mean a shared field's content would be the same across all translations of that item in sitecore. Is that correct? Yes, that's correct - the same across versions and languages of an item. Here the quote about Shared from SDN (though for 5.3, still valid for 6.x): When this checkbox is set, the Field in question will have the same value for all versions of the parent Item. When the Shared property is set,

Sitecore 8.1 index rebuild strategy for SOLR search provider

怎甘沉沦 提交于 2019-12-01 15:49:51
Just read through the index update strategies document below but couldn't get the clear answer on which strategy is best for SOLR search implementation: https://doc.sitecore.net/sitecore_experience_platform/search_and_indexing/index_update_strategies We have setup the master and slave Solr endpoints where master will be used for create/update. And slave for reading only. Appreciate if you could suggest the indexing strategy to be used for: Content Authoring Content Delivery Solution is hosted in azure web apps and content delivery can be scaled up or down from 1-N number at any time. I'm

How to refresh sitecore tree node after edit that item and publish it

孤街醉人 提交于 2019-12-01 14:49:47
I need to refresh sitecore tree node after publish it. Current behaviour is when I update some item and publish, sitecore tree node does not get refreshed. I have to manually refresh the sitecore tree node. How to accomplish this task? Nina I've recently created a command where Context.ClientPage.SendMessage(this, "item:load(id=" + item.ID + ")"); is used to load the newly created node. Maybe that works for you as well. RG-3 John West has the best approach of this problem: https://community.sitecore.net/technical_blogs/b/sitecorejohn_blog/posts/load-or-reload-an-item-in-the-sitecore-asp-net

Sitecore Fast Query Gives Parse Exception

巧了我就是萌 提交于 2019-12-01 13:55:49
问题 Why am I getting this error with the code below ParseException: End of string expected at position 4. Here's the code: The error is on the 3rd line. var db = Sitecore.Configuration.Factory.GetDatabase("web"); string query = @"fast:/sitecore/content/foodservice/home/Products/3492-5326/3518-7"; Item item = db.SelectSingleItem(query); return item; Can we use a fast query with SelectSingleItem() ? I was trying to avoid the get folder contents and loop through each item until I find the target

How to refresh sitecore tree node after edit that item and publish it

风流意气都作罢 提交于 2019-12-01 13:32:59
问题 I need to refresh sitecore tree node after publish it. Current behaviour is when I update some item and publish, sitecore tree node does not get refreshed. I have to manually refresh the sitecore tree node. How to accomplish this task? 回答1: I've recently created a command where Context.ClientPage.SendMessage(this, "item:load(id=" + item.ID + ")"); is used to load the newly created node. Maybe that works for you as well. 回答2: John West has the best approach of this problem: https://community