sitecore

Sitecore: Forcing pasting as unformatted text

一个人想着一个人 提交于 2019-12-19 04:15:23
问题 Is there a good way to force pasting as text inside Rich Text Fields inside Sitecore? I know there's a "Paste as Text" button in the Rich Text Editor itself, but content authors are almost definitely going to just hit Ctrl+V or Right-Click->Paste to put the text in, and if that content came from Word, all hell breaks loose with the markup. The workaround we have so far is to paste into notepad and then to copy that text and paste it into the Rich Text Field, but that solution is inelegant and

How do I trigger a profile in Sitecore DMS?

拟墨画扇 提交于 2019-12-19 04:04:20
问题 I am looking for a way to allow visitors to select what content they want displayed on the site. Is there a way to programatically trigger a profile in Sitecore DMS? I've looked at relevant documentation on SDN (http://sdn.sitecore.net/Reference/Sitecore 6/DMS Documentation.aspx), but so far haven't found a way. EDIT: Raised this on Sitecore Support Portal - will post an answer once I find out more. 回答1: I have done something similar on my project. Check out this code sample and let me know

Get Item in all languages in which it has a version

耗尽温柔 提交于 2019-12-19 02:54:29
问题 Say we have an Item Product(which has versions in en, jp, zh and 0 versions in ru). How can I get this item in en, jp and zh and not in ru. I tried the below code. Item tempItem = Sitecore.Context.Database.GetItem(tempID); foreach (var itemLanguage in tempItem.Languages) { //Do Something } Here tempItem.Languages is returning all four languages where I was expecting only three as ru does not have versions. Is it the correct way to achieve this? 回答1: You need to check the versioncount of the

How do I turn off XHTML validation in Sitecore?

三世轮回 提交于 2019-12-19 02:23:05
问题 How do I turn off Sitecore (6.5) XHTML Validation of pages in workflow? I'm developing and keep running into issues while trying to publish down test pages because they error out. I would prefer to just get the errors as stacktraces in the browser. I'm not sure if I have changed something before this does this, but I've recently taken on a project to move a Sitecore into a multi-site solution. I did not have these issues while developing the solution the first time but I was using 6.4 instead

Sitecore - Indexing data from presentation components with non-context datasources

家住魔仙堡 提交于 2019-12-18 13:31:41
问题 I have a Sitecore site where many of the pages are assembled mainly from various sublayouts pointing at datasources elsewhere in the content tree. Here's a basic example of the problem. Someone viewing a page about apples might see the word 'apple' 10 times. However, Lucene will not index the Apple page item for that word because it's stored in other items. I'm sure this must be a common issue but I can't seem to find any advice on it. 回答1: This is a common issue and there's a solution in

Annoying issue with sitecore workflows and standard value inheritance

白昼怎懂夜的黑 提交于 2019-12-18 13:09:12
问题 Right now i'm having a problem with sitecore workflow. The issue is as follows: my template standard value has set the Workflow and Default Workflow fields set. The workflow state is set to draft. However, everytime i create an item from this template it is not inheriting the workflow section fields, all of them are empty if i manually set workflow and workflow state for items, it works as expected up to the final state. However, if a content author edits the item, a new version is created

'System.Web.Webpages.Html.Htmlhelper' does not contain a definition for 'Sitecore'

前提是你 提交于 2019-12-18 12:55:18
问题 I'm getting this error in Visual Studio, when I use @Html.Sitecore : 'System.Web.Webpages.Html.Htmlhelper' does not contain a definition for 'Sitecore' and the best extension methods overload 'Sitecore.Mvc.HtmlHelperExtensions.Sitecore(System.Web.Mvc.HtmlHelper)' has some invalid arguments.` However, once deployed it does run without any problems. I'm using Sitecore 7.2 with MVC 5.1. Articles that I've read that deal with similar error messages, talk about the system.web.webPages.razor

How to customize mobile device detector?

对着背影说爱祢 提交于 2019-12-18 09:39:36
问题 I have a customize request from my client in sitecore mobile module. I want to be on full view site from my mobile on Career page, i am able to do it but any of the link inside career page with having mobile layout in presentation detail is taking that page again to mobile device. Can we make any customization that maintain the device in cookies so that it keep user on full view site after coming to career page. Is there any setting we can do in pipeline or session. I just want to be

Can we assign more then one template ID in templateId (like we do in relatedId), while searching with Lucene?

落花浮王杯 提交于 2019-12-18 09:36:56
问题 I have Five check boxes Search All Template 1 Template 2 Template 3 Template 4 If user selects Search All , then simply we can pass index name and get result, if user selects one of template specific check box, again simply we can do by passing template name, but if any of two templates specific check box(or may be three) are checked, then? Can we pipe-separate templateIDs? 回答1: You may need to change the method in the Advanced Database Crawler to handle the GUIDs of templates passed in. The

Edit in Place CMS Suggestions [closed]

半城伤御伤魂 提交于 2019-12-18 08:59:14
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I need to find a [very] easy to use (for editors/authors) CMS. Preferably with edit-in-place editing similar to SiteCore. We don't need something as huge and powerful as SiteCore though. Users need the ability to add pages (using set templates that we in development have provided), they also need the ability to