sitecore6

Sitecore text search in PDF or Word documents

与世无争的帅哥 提交于 2019-12-03 20:13:59
I want to find out if it's possible to configure Sitecore's Lucene search engine to index PDF or Word documents? I've looked on the Sitecore support site at this document ( http://sdn.sitecore.net/upload/sitecore6/65/sitecore_search_and_indexing_sc60-65-a4.pdf ) but it mentions creating a file crawler class which suggests to me that it's only possible to achieve this by writing custom code. If I do need to write custom code to do this, would I also need to have some API in order to extract the text content from PDF documents? Arnold Zokas I've recently had to do something similar on one of my

What's a good way to set the Item or DataSource attribute of a FieldRenderer?

前提是你 提交于 2019-12-03 17:02:08
The scenario is that I have a lot of FieldRenderers. These should output data from various places, some from item X and others from item Y. And should be outputting properties from item Z. Assuming I have a public property ItemX that I want to output a property from, any of the following would be OK. But I get no output by any of them: <sc:FieldRenderer runat="server" FieldName="Logo" DataSource="<%# ItemX %>" /> <sc:FieldRenderer runat="server" FieldName="Logo" DataSource="<%= ItemX.Paths.FullPath %>" /> <sc:FieldRenderer runat="server" FieldName="Logo" Item="<%# ItemX %>" /> <sc

Unit Testing Sitecore using NUnit, serializing content

亡梦爱人 提交于 2019-12-03 15:39:44
In my business, I am working on Unit Testing, after finishing an example in a .NET application. We want to use a standard .NET Unit Testing project. We also want to mock the Sitecore data by serializing the Sitecore objects. I have been looking for, but could not find a good tutorial to do this. How can I do this? Interesting videos on Youtube Sitecore Unit Testing video by gravypower. Another interesting video by codeflood. Most knowledgeable for me was this video by Alistair Deneys from Hedgehog Other interesting blogs are Igloo - Unit Testing for Sitecore iStern - Unit testing with Sitecore

How to disable Sitecore Analytics entirely

穿精又带淫゛_ 提交于 2019-12-03 15:04:41
We are experiencing cpu problems on our production servers. After profiling with the jetbrains cpu profiler, we have noticed that some functions in the assembly Sitecore.Analytics were executed. This is somewhat strange because we have disabled all analytics related configuration in de config files. After looking into the /sitecore/admin/showconfig.aspx we noticed that there are still a lot of Sitecore.Analytics related configurations in this config while these are deactivated in our config files. For example In the file /App_Config/Include/EventHandlers.config the configuration looks like

Create link to Sitecore Item

感情迁移 提交于 2019-12-03 14:58:53
问题 I know I have done this before but I can't seem to remember where or how. I want to create a link to an Item in Sitecore. This code: Sitecore.Data.Items.Item itm = Sitecore.Context.Database.GetItem(someID); return itm.Paths.Path.ToString(); Produces the following string: http://localhost/sitecore/content/Home/Item1/Item11/thisItem I would like to have this string instead: http://localhost/Item1/Item11/thisItem.aspx What is the correct way to get the path to the item? In this case I can't use

What is the difference between Sitecore's core, master, and web databases?

江枫思渺然 提交于 2019-12-03 14:56:58
问题 What is the difference between Sitecore's core, master, and web databases? 回答1: I recommend you look at the Launch Sitecore site to understand more about the CMS. From the page on Sitecore Architecture: Master The Master database is the authoring database - it contains all versions of any content or assets. Core The Core database is all Sitecore settings, as well as the tables containing the .Net membership provider (i.e. users/roles contained in the Sitecore repository) Web The Web database

Setting __Renderings field not shared in Sitecore consequences?

安稳与你 提交于 2019-12-03 14:53:01
Does anyone have experience in setting the __Renderings field in Sitecore to not be shared? We are building a multi site-multi language solution and would need the (sub)layouts to be different in different languages. For example, the English language site could have a sublayout that the Swedish version of the same item does not have and all presentation components does not always have the same data source for different languages. A somewhat easy solution to this would be to simply uncheck "shared" on __Renderings field in the /sitecore/templates/System/Templates/Sections/Layout template , but

Sitecore 6.5 with MVC3

给你一囗甜甜゛ 提交于 2019-12-03 14:52:01
I have to use Sitecore 6.5 with MVC framework and as per the reference document I can setup Sitecore and make that running. I have created MVC3 .NET web application project (blank and using Razor) and I dot know following things How do I setup Layouts and Sublayouts? (this must be different then web form I guess) What do I have to do to use Sitecore data controls e.g. FieldRenderer, Text etc. (I guess without those controls it will be not easy for us to use provide Page Editing mode) How do I use Sitecore placeholders in MVC? I have used this document as a reference. At present Sitecore MVC

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

纵饮孤独 提交于 2019-12-03 12:44:24
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; options.Deep = true; Publisher p = new Publisher(options); p.PublishAsync(); When we run the above

Webforms for marketers form fields conditional visibility dynamically

六月ゝ 毕业季﹏ 提交于 2019-12-03 08:55:25
We are using WFFM for our landing pages creation. It is very easy for our marketing guys to use that. Now, we are looking at customizing them. For instance, we have the following requirement. On our form, we display country of residence, but when you select some countries, we want to display one more dropdown called state/province with the states. When user selects other countries, we have to hide the state/provice field. I am banging my head, how can I start implementing this. Can anyone of you guide me, how to proceed? Try the following: Create a DropList field on your form in Sitecore Add