sitecore

jcarousel plugin is not working in sitecore preview mode

折月煮酒 提交于 2019-12-12 11:05:41
问题 jcarousel plugin is working when we run the page on browser but if we run the same page in sitecore preview mode(In sitecore: Click on Presentation in the top menu. Click on Preview in the ribbon) then this plugin is not working. please let me know if you have solution that would be helpful. 回答1: Which version of Sitecore do you use? I think the problem might be with jquery conflicting with prototype . You can try to use jquery in noConflict mode: var $j = jQuery.noConflict(); In nutshell,

Get value of droplink in Code-Behind

独自空忆成欢 提交于 2019-12-12 10:43:32
问题 I am trying to get the display name of an item in a droplink in the back-end C# code. I am using Sitecore 6.6, not using MVC, and am setting a droplink control in the CMS for clients called Address . The droplink source goes to /sitecore/Templates/User Defined/WAC/Address , and the individual items have an SEO-compliant name and a readable display name. For example: Item ID: {9E60F5F8-FBF2-4CBD-BB13-6A93397AAC87} Name: 100-main-street Display Name: 100 Main Street, Sample Town, 10011 My code:

Sitecore - rewrite “_” to “-” in urls but going to 404

柔情痞子 提交于 2019-12-12 10:38:32
问题 I am using Sitecore 7.5 and replacing two things <replace mode="on" find=" " replaceWith="-" />(Space with hyphen) <replace mode="on" find="_" replaceWith="-" />(underscore with hyphen) Replacing space(" ") with hyphne(-) is working fine but in the case of underscore(_) its changing in hyphens(-) but redirecting to 404, any idea? We can manage this by Event handler but don't want to do that way. 回答1: I commented on another answer that the problem is that when resolving the items, the incoming

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

穿精又带淫゛_ 提交于 2019-12-12 10:13:20
问题 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

Sitecore versioned image not loading

爷,独闯天下 提交于 2019-12-12 09:48: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

HTML - How to remove Zero-Width No Break Space

狂风中的少年 提交于 2019-12-12 09:47:56
问题 I have looked at both: Remove zero-width space characters from a JavaScript string Why is  appearing in my HTML? The issue: The unicode character comes in the exact same spot every time, between the .breadcrumbs and .hero divs ( some of the pages do not have an .actions container in case you're wondering ). Using Sitecore 8 (CMS). I have NO IDEA where this is coming from. It only happens on a couple of pages, and I think I've narrowed it down to (2) renderings. I followed the advice in one

stop words in sitecore

流过昼夜 提交于 2019-12-12 08:37:32
问题 We are using Lucene for text search as part of sitecore. Is there any method to ignore stop words (like a,an,the...) in the sitecore search? 回答1: By default, Sitecore uses Lucene standard analyzer - Lucene.Net.Analysis.Standard.StandardAnalyzer . You can see this is defined in /configuration/sitecore/search/analyzer element of web.config file. One of the constructors of StandardAnalyzer class accepts the array of strings it will consider stop words. By default it uses the hardcoded list of

Why does Sitecore publish draft items from the C# API, and how do I stop it doing so?

别来无恙 提交于 2019-12-12 07:53:52
问题 I'm running a scheduled publish of my Sitecore master DB using the Sitecore publishing API. I call a web service at scheduled intervals during the day which runs the following code (slightly condensed for readability): // grab the root content node from sitecore Item contentNode = dbSource.Items[ID.Parse("{0DE95AE4-41AB-4D01-9EB0-67441B7C2450}")]; PublishOptions options = new PublishOptions(sourceDatabase, targetDatabase, PublishMode.Smart, lang, DateTime.Now); options.RootItem = contentNode;

How to enable VersionCountDisabler for Glass Mapper in Sitecore for SitecoreQuery and SitecoreChildren attributes

拈花ヽ惹草 提交于 2019-12-12 06:58:22
问题 The glass mapper will return null object or (no items) for SitecoreQuery and SitecoreChildren attribute that are placed on the GlassModels. These attributes don't take any such parameter where I can specify them to return items if they don't exist in the the context lanaguge. The items e.g. exist in EN but don't exist in en-ES. I need to put a lot of null check in my views to avoid Null exception and makes the views or controller very messy. It is lot of boiler plate code that one has to

Experience Editor is not showing the ribbon options in sitecore 8

倖福魔咒の 提交于 2019-12-12 06:39:52
问题 I have logged in to sitecore through administrator account. I have a page in my site if press 'experience editor' or preview button,editor ribbon is not displaying. I am new to sitecore, Is that a permission issue am facing? 回答1: If you see only header of the ribbon like that: Click on the arrow on the right. You should see all the options: If you don't see even the header, there must be some errors on the console. 回答2: This specifically applies to MVC implementations and could apply to