sitecore6

Sitecore versioned image not loading

前提是你 提交于 2019-12-06 03:40:24
I'm running Sitecore 6.5 and have a data template that has an image field and an item that's based on that template. The site had two languages. If I use a versioned image (one item in the media library with En and Fr versions) in the En and Fr versions of the item then publish the site and switch the language in the site using query string, sc_lang=en or fr, everything changes in the page except for the image. But if I use two different images (two items in the media library) then the correct image loads when switching between languages. Any idea to why this happens? Thanks T Update I tried

How to provide email notifications/workflows for clones

六眼飞鱼酱① 提交于 2019-12-06 02:21:32
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 extend or override a pipeline to do this? Crossposted to SDN http://sdn.sitecore.net/forum/ShowPost.aspx

Sitecore - Multiple-Site Error Page Handling

陌路散爱 提交于 2019-12-06 00:03:18
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? John West 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 information about extending existing classes ). The SDN forum post provides more information

How to solve a login/database missing error regarding Sitecore Training Website?

对着背影说爱祢 提交于 2019-12-06 00:02:57
I get the following error while accessing the Sitecore Training Website. Server Error in '/' Application. Cannot open database "SiteCoreTrainingSitecore_Core" requested by the login. The login failed. Login failed for user 'sitecore'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Cannot open database "SiteCoreTrainingSitecore_Core" requested by the login. The login failed. Login failed for

Lucene Indexes in Sitecore getting corrupted (ArgumentOutOfRangeException)

谁都会走 提交于 2019-12-06 00:01:14
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.WeakHashTable.Clean() at SupportClass.WeakHashTable.CleanIfNeeded() at SupportClass.WeakHashTable.Add(Object key,

How to display a popup when saving a Sitecore item?

馋奶兔 提交于 2019-12-05 14:17:24
When saving a Sitecore item I am trying to display a popup to interact with the user. Depending on data that they have changed I may display a series of 1 or 2 popups asking them if they want to continue. I have figured out how to tap in to the OnItemSaving pipeline. That is simple. What I can't figure out is how to display a popup and react to the input from the user. Right now I am thinking that I should be using the Sitecore.Context.ClientPage.ClientResponse object somehow. Here is some code that shows what I am trying to do: public class MyCustomEventProcessor { public void OnItemSaving

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

元气小坏坏 提交于 2019-12-05 10:31:17
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 allowing "-" as a legal item name character? Our current best idea is to use something slighty more

How to use internal links with wildcard items in Sitecore?

霸气de小男生 提交于 2019-12-05 09:42:23
I have a multiple site Sitecore solution. All the sites share a product range which is stored inside a 'Shared data' node that sits at the same level as the root nodes of the sites. The individual product pages on a site use a wildcard item to lookup the product based on the last part of the URL. This means that we can't use internal links in the rich text editor to point to the product page on any of the sites because the product item does not have a specific site URL. Does anyone know of a way to overcome this, or perhaps know of a way to augment the default behavior of interal links? Wesley

Set queryable source on Rendering Parameter Template field

你说的曾经没有我的故事 提交于 2019-12-05 08:21:33
I have a Rendering Parameter template applied to a sublayout. It has a single Droptree field on it, and I want to set the Source of that field to a Sitecore query so I can limit the options available for that field. Source can be: query:./* or query:./ancestor-or-self::*[@@templatename='MyTemplate']/ The query just needs to grab items relative to the content item that we're on. This normally works with Droptree fields in the content editor. However I'm finding that the query isn't working here because we're in the rendering parameters, so it's not using the content item as it's context. The

Upgrading sitecore 6.6 index configuration to sitecore 7 (using ComputedFields)

六月ゝ 毕业季﹏ 提交于 2019-12-05 06:48:27
Sitecore CMS+DMS 6.6.0 rev.130404 => 7.0 rev.130424 In our project we have been using AdvancedDatabaseCrawler (ADC) for our indexes (specially because of it's dynamic fields feature). Here's a sample index configuration: <index id="GeoIndex" type="Sitecore.Search.Index, Sitecore.Kernel"> <param desc="name">$(id)</param> <param desc="folder">$(id)</param> <analyzer ref="search/analyzer" /> <locations hint="list:AddCrawler"> <web type="scSearchContrib.Crawler.Crawlers.AdvancedDatabaseCrawler, scSearchContrib.Crawler"> <database>web</database> <root>/sitecore/content/Globals/Locations</root>