sitecore6

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

与世无争的帅哥 提交于 2019-12-07 17:58:49
问题 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

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 - 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

Set queryable source on Rendering Parameter Template field

一个人想着一个人 提交于 2019-12-07 02:40:08
问题 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

Auto Increment / Identity Custom Field Type

[亡魂溺海] 提交于 2019-12-06 15:59:43
I am currently implementing a system where there are user generated items, we can call them Orders. I would like to have a field (non-GUID) that is easy for customers to say over the phone or to write down that represents their order. The field should be simple and unique which made me think of an identity field. Can a portion of the item's GUID, say 10 characters, be unique enough? How can a unique field like this be implemented in Sitecore? GUIDs are alpha-numeric which is fine for my situation, but are too long. Currently I am doing so an example could be 103143317 (Store 103, at 2:33.17pm)

How to maintain Lucene index availability during rebuild?

冷暖自知 提交于 2019-12-06 14:21:38
When rebuilding indexes on a content delivery server, any components that search that index fail (blow up). How can I rebuild my index without causing the search components to be unavailable? Furthermore, is there a standard way to handle this? The code I'm using to perform the reindex on regular intervals: Sitecore.Data.Database db = Sitecore.Configuration.Factory.GetDatabase(DBName); Index index = db.Indexes[IndexName]; index.GetSearcher(db).Close(); index.Rebuild(db); To give a little context: Sitecore version - 6.4.1 (rev. 110324) It is necessary to rebuild the index because it contains

Considerations for Sitecore 6.4 architecture for multiple site, multiple language open ended solution?

依然范特西╮ 提交于 2019-12-06 08:33:15
问题 I'm looking at using the new cloning functionality of Sitecore 6.4 to help with reuse of components and content for a multiple site, multiple language solution. The basic idea is to create a central content repository within Sitecore (possibly in multiple languages) which could then be cloned to provide regional sites, each with their own selection of supported languages. The thinking behind this is to allow regions to easily replicate the content they require and take ownership of it. With

How can I make sitecore showing an image (or other resources)

大憨熊 提交于 2019-12-06 06:02:16
I installed clean Sitecore 6.6 and enabled MVC support using this guide . So my environment is Sitecore 6.6, ASP .NET MVC 3 and Razor, Microsoft SQL Server Express 2012, IIS 7.5 and I'm using Microsoft Visual Studio 2012 Express for Web. I have following code: @Model.PageItem.Fields["Title"];<br /> @Model.PageItem.Fields["Image"].GetValue(true, true);<br /> @Model.PageItem.Fields["Text"];<br /> Sitecore.Data.Items.MediaItem item = Model.PageItem.Fields["Image"].Item; @Sitecore.StringUtil.EnsurePrefix('/', Sitecore.Resources.Media.MediaManager.GetMediaUrl(item));<br /> Result is simple: