sitecore

Sitecore Dictionary Items

浪尽此生 提交于 2019-12-11 01:49:44
问题 In the earlier versions of Sitecore there were an issue with dictionary items, if we have a CDs environment, sometimes the Dictionary.dat file may not get updated on CDs server. 1) is this issue still exist with Sitecore 8 ? 2) if yes, what is the best approach to implement custom dictionary items for my website ? 回答1: I have this issue on Sitecore 8.1 Initial Release. To fix it you need to add on publish:end and publish:end:remote event a new handler. This is the class : public class

How to implement Sitecore Template inheritance with Glass Mapper

和自甴很熟 提交于 2019-12-11 01:44:20
问题 I've been trying to achieve the following with glass mapper but can't get it to work. I have a Home Page template which doesn't have any fields itself but inherits the following two templates: Navigation Template Fields: Navigation Title Meta Information Template Fields: Page Title, Meta Description I've created the corresponding interfaces / classes as follows: [SitecoreType(TemplateId = "{5BAB563C-12AD-4398-8C4A-BF623F7DBCDC}", AutoMap = true)] public interface INavigation { [SitecoreField

how to load css classes from my own project specfic css in Sitecore's RAD editor?

本秂侑毒 提交于 2019-12-11 01:01:13
问题 how to load css classes from my own project specfic css in Sitecore's RAD editor? I want to give option to client to add predefined css class to any needed element. 回答1: Put the css in default.css in your websites' root folder and restart IIS. Sitecore RAD editor should pick up the classes, although we found it could take a couple of restarts. 回答2: Depending on the version of Sitecore you're using there's different ways since in 6.4 there is a new wysiwyg from Telerik's updated library. pre 6

Sitecore 8: Number of Recipients in List Manager not calculating properly

▼魔方 西西 提交于 2019-12-11 00:19:48
问题 In List Manager 'Recipients' field values are sometimes not getting calculated correctly. For some lists it shows 0 but when I go inside to that contact list there are contacts. I have followed the steps below: Rebuild sitecore_list_index Rebuild all Sitecore indexes Rebuild all Sitecore indexes and restart the site and the app pool of the site in IIS But still the issue is not solved. 回答1: I have the same issue. What could be really helpful - you can edit "Recipients" field of your List Item

ASP.NET HttpContext Items vanish on server

不羁的心 提交于 2019-12-10 23:55:19
问题 We are currently seeing an issue with the use of HttpContext.Current.Items where the local environments of the developers show no issues (all works as expected) in the server environment we are suddenly loosing items placed inside (getting a NullReferenceException ). I sketched some code and use below: Global.asax we initialise the factory at BeginRequest: protected void Application_BeginRequest(object sender, EventArgs e) { HttpContext.Current.Items["Key"] = new Factory(); } Inside the

Customizing sublayout caching in Sitecore

时光毁灭记忆、已成空白 提交于 2019-12-10 22:57:00
问题 When using WebControls in Sitecore, there is a way to customize caching behavior - override GetCachingID method. Is there a way to achieve something like this with Sublayouts(UserControls)? I'd like to add custom "VaryBy" options(example - "Vary By Moon Position"). 回答1: Yes, sublayout caching can vary by several different criteria by default. You can leverage varying by parameters to do this. The vary-by's are: Vary by Data Vary by Device Vary by Login Vary by Parameters Vary by Query String

How to insert custom Javascripts in Sitecore backend

别等时光非礼了梦想. 提交于 2019-12-10 21:34:59
问题 Pretty simple, I need to insert a script in Sitecores (v. 6.4) backend - how do I do it? It doesn't matter if the script is placed inside <head> or <body> , nor does it matter if I can only specify the src of a <script> tag or if I can insert an actual Javascript snippet (the latter is preferable though). The script needs to be inserted in the HTML when a Content Editor window is opened. It is not an installation of my own, nor do I develop anything for Sitecore (I do have admin access,

Sitecore Pipeline Upload Processor

落爺英雄遲暮 提交于 2019-12-10 21:34:31
问题 I'm using UploadProcessor to block specific file uploading into MediaLibrary. Everything is working good and I can see the alert Sitecore's message. But, Sitecore's error message is not really user-friendly "One or more files could not be uploaded. See the Log file for more details" So, I'd like to add extra alert box for users. Below is my code, but the javascript is not working. Some people want me to use "SheerResponse", but Sitecore Document mentions that The uiUpload pipeline is run not

Can't insert a Web Forms For Marketers form because there are no Placeholders

无人久伴 提交于 2019-12-10 21:34:29
问题 We are trying to fix an old issue with our Web Forms for Marketers module (I think it is 2.2, but I don't know how to tell) in Sitecore 6.4.1 running .NET Framework 2.0. I am having trouble even adding a form to an item. I am making an assumption that I should be using the "Insert Form" button in the presentation tab of my item. When I click that button I get a wizard that goes fine until it tells me the following: "There are no allowed placeholders in order to insert a new form." Ignorning

Set MediaItem on ImageField

允我心安 提交于 2019-12-10 20:24:20
问题 Currently mediaItem.Src is throwing an obsolete warning and states using the MediaItem property instead. The mediaItem.MediaItem has no setter though. Is this warning really just to get people to use something like: var image = new Sitecore.Data.Items.MediaItem(imageField.MediaItem); Sitecore.Resources.Media.MediaManager.GetMediaUrl(image); Is .Src (and related field properties) still the recommended way to actually set the field's value? 回答1: I believe you'd set the media ID instead of the