sitecore

How to include 3rd party code in separate versions in one project

夙愿已清 提交于 2019-12-06 09:32:10
I've got an interesting problem on my hands and I can't quite figure out the right way of handling it. This is specific to sitecore, but I would imagine the fix to the issue would be one that could be applied to anyone that has multiple websites running different versions of a framework. Right now I have 3 separate websites running Sitecore as the framework and CMS for the sites. One website it running code from Sitecore 6.5, another is on 7.0, and another is on 7.0 but will be 7.2 soon enough. One of the core principles of programming is do not repeat yourself. I want to set up a separate C#

Sitecore Workbox, display item field for name?

狂风中的少年 提交于 2019-12-06 09:06:23
By default Sitecore workbox displays the item name, I want to display the "Title" field (Custom field). How can I do this? I had a similar requirement where a client needed the Workbox to display the item's 'path' instead of it's name. The problem was that many of their items shared the same name - making it difficult to distinguish between items. Unfortunately, this change required us to make a custom implementation of the Sitecore WorkboxForm class. I would normally not recommend modifying Sitecore like this, but for something as important as the Workbox, it may be worth the hassle. In the

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

Language Fallback not working for Fields with Standard Values (Sitecore 8.1)

人盡茶涼 提交于 2019-12-06 08:17:39
We had an issue where we enabled fallback language settings at the item level on a base template so that it would apply to all of our items. It worked for about 90% of our items but not for others even though the sitecore content editor indicated that it was working. Placing this here for anyone else who has this issue. I didnt find a specific solution for this issue on Google and was lucky enough to figure it out. Hopefully this can help someone else out too. Our setup is Sitecore 8.1 with Habitat Asp.net MVC Daniel Kereama Here are some steps to make language fallback work for all items by

Unit Testing Sitecore LicenseManager

谁说胖子不能爱 提交于 2019-12-06 07:52:55
I'm trying to unit test with the Sitecore api. I got a unit test project (MSTest) in my solution in Visual Studio. I copied the configSections, connectionStrings, appSettings, sitecore, log4net elements from my web.config to my app.config. The test I'm trying to run is: Sitecore.Context.Database = Factory.GetDatabase("master"); Item a = Sitecore.Context.Database.GetItem("/sitecore/content/Home"); Assert.IsFalse(a.HasChildren); I defined my datafolder in the app.config file and the connectionstrings to my core, master and web databases are also set in the app.config. The exception that is

Sitecore ContentSearch duplicate indexes when saving items

萝らか妹 提交于 2019-12-06 07:27:41
I have implemented an index for our application which is supposed to index our items from an item bucket on the master database, but it seems that each time an item is updated and saved (not published, since the index works on master) an additional index is created for that item, which means another search result for the item. After regenerating the indexes there seems to be no issue, each item in the bucket is indexed exactly once. I'm adding the index config for the search functionality below: <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> <sitecore> <customSearchNewsItem>

Sitecore 8.1 output cache not clearing

非 Y 不嫁゛ 提交于 2019-12-06 06:23:27
we have CA and CD on different servers hosted in Azure Web Apps written using ASP.NET MVC. I've added below so that output cache gets cleared upon publish end. <event name="indexing:end:remote"> <handler type="Sitecore.ContentSearch.Maintenance.IndexDependentHtmlCacheManager, Sitecore.ContentSearch" method="Clear"/> </event> However, the output cache doesn't get cleared and website content doesn't get updated. Any configuration that I need to do on top of above? Thanks. Jay S You probably are missing your scalability settings. Because these are different servers, your CD needs to know which

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:

Hide Quick info in Sitecore through code

允我心安 提交于 2019-12-06 05:56:26
I want to hide quick info section through code instead of unchecking the check box in Application Options dialog box. Can someone help in this? Jason Horne The following code does exactly what your looking for. Add this code below: namespace Custom.Framework.SC.Extensions.Pipelines { using Sitecore.Pipelines.LoggedIn; using SC = Sitecore; /// <summary>The default quick info.</summary> public class DefaultQuickInfo : SC.Pipelines.LoggedIn.LoggedInProcessor { /// <summary>The process.</summary> /// <param name="args">The args.</param> public override void Process(LoggedInArgs args) { const

Get Profile Key Score for Individual Page in Sitecore

房东的猫 提交于 2019-12-06 04:16:32
I have a question regarding Sitecore Analytics and user profile keys. I need to be able to get the score of a profile key for an individual page. For example, if I have a profile key called "traveler" that could have a value of 1-10 on a given page, I need to be able to get the value for that key that was assigned by the content author. I have found that by using the following: Sitecore.Analytics.AnalyticsTracker.Current.Data.Profiles.GetProfile("Profile Name").GetProfileKeyValue("traveler") I can get the total score that the user has accumulated throughout their session, but I cannot seem to