sitecore

Very basic usage of sitecore search

你离开我真会死。 提交于 2019-11-29 10:22:06
I am trying to setup a very basic search index, to index all items in a specific folder. I haven't really used much searching, but I'm trying to use out-of-the-box features, because its a very simple search. I just want to index all the fields. The sitecore documentation really doesn't provide much information - I've read a few blogs, and they all seem to suggest that I need the advanced database crawler ( http://trac.sitecore.net/AdvancedDatabaseCrawler ) - basically, something to the effect of 'it won't work without a custom crawler). Is this right? I just want to create a simple index, and

Sitecore performance optimization - Sitecore configurations, IIS configurations

别来无恙 提交于 2019-11-29 09:42:09
问题 We are planning to deploy our system in the production server. I am interested in learning more about optimizing the performance of the website. What are the optimizations recommended for Sitecore? (Caching, other settings in web config) What are the optimizations we can do in IIS? Could not find a good article on these topics. Appreciate any help :). 回答1: Have you looked through all the Sitecore recommended practices and Performance Tuning Guide and applied all these? Take a look at these

Sitecore: Assign workflow to an item programmatically

六月ゝ 毕业季﹏ 提交于 2019-11-29 04:46:32
I have configured a workflow, starts with "Draft" state as usual. And I have configured the workflow for standard values of the template. It works perfect in Content editor. (When I create an item using the content editor, once I create the item, Workflow gets assigned to the item and it's state becomes "Draft".) But when I create an item programmatically under the above template it does not assign the workflow. What should I do to assign workflow? Please share any code samples if you have. Thanks. Sitecore.Data.Items.TemplateItem template = this.MasterDatabase.GetItem("/sitecore/templates

Is it possible to build a sitecore data package from command line, or outside of a web context? i.e. using nant

非 Y 不嫁゛ 提交于 2019-11-29 02:50:46
问题 The Sitecore package wizard can be used to build a package containing data and files for the local Sitecore instance. Is it possible to build a Sitecore package (items only, files are not required) from the command line, or otherwise outside the context of a website? The idea is to use Nant to create a Sitecore data package. I'm aware of Hedgehog TDS, but this question is aimed at what can be done with the existing Sitecore api. 回答1: You should take a look at the Sitecore.Install

Sitecore 'dynamic placeholders' with MVC

末鹿安然 提交于 2019-11-28 16:31:27
问题 I'm looking for a working Dynamic Placeholder solution in MVC. There are at least two good descriptions of this "pattern" for use with WebForms: http://trueclarity.wordpress.com/2012/06/19/dynamic-placeholder-keys-in-sitecore/ http://www.techphoria414.com/Blog/2011/August/Dynamic_Placeholder_Keys_Prototype And I also found this blog explaining how to do it with MVC: http://blogs.perficient.com/portals/2012/10/17/sitecore-mvc-dynamic-placeholders/ First I have tried to implement Techphoria's

Sitecore: How to use sublayout parameters from codebehind?

烈酒焚心 提交于 2019-11-28 12:23:06
How do I get the values from the "Parameters" field (second screenshot) in the code-behind of the sublayout? I understand I can get/set parameters on a rendering (specifically sublayout) when it is added to the presentation details of an item, just as described here ( Sitecore 6 - using parameters ). However I would like to use the parameters field from the layout definition item. In the codebehind of the file belonging to to layout definition I can cast the parent to a sublayout and that object also has a .Parameters property, however this doesn't contain the values I'd expect. This is the

How to access drop down list field type selected value in sitecore

三世轮回 提交于 2019-11-28 09:27:54
问题 I can access Single-Line text field type by following in Repeater: <sc:FieldRenderer ID="frTitle" runat="server" FieldName="Title" Item="<%# (Sitecore.Data.Items.Item)Container.DataItem %>" /> but how to access drop-down list field type selected value defined in item. Thanks 回答1: This depends on the exact field type you are using. If using a Droplist field type The value is stored in Sitecore as plain text representing the name* of the selected item. In this case you could use your code

How to maintain Sitecore Lucene indexes in huge content delivery webfarm?

女生的网名这么多〃 提交于 2019-11-28 07:15:19
问题 I know that Lucene indexes cannot be shared: Sitecore keeps a local copy of the Lucene index in the file system of each instance and does not support sharing the indexes between instances. Is it possible to xcopy Lucene indexes between CM and CD? Is there some other approach or recommendation to maintain a indexes in 30+ content delivery servers ? Update: I’m fully aware that CDs must kick off their own index update. With over 30 CD servers I’m thinking that maybe there will be a period of

sitecore template standard values layout not updating all items, layout not loading

耗尽温柔 提交于 2019-11-28 06:13:13
问题 i'm currently having a nightmarish moment with Sitecore. Basically my issues are two-fold: 1) the first time i added a standard value item to a template, and added a layout setup to it, i was thrilled, since all my items from that template were showing the layout, however now, certain items are now showing no layout at all. I tried doing presentation->layout, reset several times, but to no avail. 2) i added a new sublayout to the standard value layout to another placeholder, did publish on

Sitecore - System.Security.Cryptography.CryptographicException

帅比萌擦擦* 提交于 2019-11-28 04:52:21
问题 Hi and thank you for your help. We're trying to keep a Sitecore site up and running on a WS 2008 R2 Standard server but keep running into the following exception: System.Security.Cryptography.CryptographicException The site is set up to run in its own App Pool with the 2.0 framework version selected and integrated pipeline mode. The site will run fine for a few minutes but then the app pool ends up being stopped with the following details: "Application pool '######' is being automatically