sitecore

Sitecore index rebuilding practices

落花浮王杯 提交于 2019-12-05 00:18:18
问题 In our sitecore project (6.6.0 rev. 130404), we have more than 2 million total sitecore items. We have several Lucene indexes (each for a subset of these items) configured. The issue we face is the time it takes to freshly rebuild these indexes. Specially with the Sitecore's QuickSearch index, it might take nearly a full day to rebuild that index, in addition to our custom indexes. What are the usual practices followed with maintenance of large sitecore indexes in day-to-day operations? How

Setting __Renderings field not shared in Sitecore consequences?

扶醉桌前 提交于 2019-12-04 23:37:49
问题 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

How to disable Sitecore Analytics entirely

点点圈 提交于 2019-12-04 22:31:27
问题 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

How to flag new items as unpublished items?

不打扰是莪最后的温柔 提交于 2019-12-04 22:11:44
问题 In sitecore, if I add a new item to the master database(Unpublished), it does not show any indication regarding the published state. For an example, if a user has added 10 items, he might get confused to figureout the items added by him which are pending for publishing. Is there a way to identify newly added items as unpublished or in new and display a validation in the "Quick action bar"? 回答1: Never thought about this, but it's actually pretty easy to fix. I created a GutterRenderer that

Web Forms for Marketers - Submit form data programmatically

泪湿孤枕 提交于 2019-12-04 18:54:30
I'm currently scoping whether or not to include Web Forms for Marketers on a project I'm currently working on. The web site will be a responsive design with a rich UI and so I would like to have full control over the rendering of the form, e.g. labels, input fields etc and would rather not have to modify the WFFM SitecoreSimpleFormAscx.ascx file or the associated css file. Is there currently any way, using C# code, to submit some form data to a Web Forms for Marketers form that is already created in Sitecore (assuming I have knowledge of all the fields)? The WFFM reference guide has a code

Sitecore: How to access same field name in different sections

╄→гoц情女王★ 提交于 2019-12-04 18:24:21
问题 I have data template dt1 in sitecore that has the field "header" in section "data". I also have data template dt2 that has the field "header" in section "portal" Finally I have data template dt3 that uses both dt1 and dt2 as base templates. How can I, in xslt, find the content of portal/header? In my code, when I write <sc:text field="header" />, I get the content of data/header (since this node comes first). I know how to do this in .net, but I need to use xslt. /callprat 回答1: You can't. And

Get number of components in placeholder, Sitecore

99封情书 提交于 2019-12-04 18:05:30
I have a component that needs to know how many components thats currently added to the very same placeholder, this since it needs to update a value of an html-attribute based on its index within the placeholder. Is there anyway to get either the number of components thats already added to a placeholder, or to get the current-renderers index? Usually I would just use a simple for-loop and set the attribute, but since its a placeholder with components thats not an option. Thanks in advance! Try this: var placeholder = "my-placeholder"; var renderingReferences = Sitecore.Context.Item

Sitecore set/change default language from 'en'

喜你入骨 提交于 2019-12-04 16:52:19
Can anyone recommend the best way to change the default language in Sitecore 6.1. On a fresh install, the typical language for all items is 'en' English, witha nice little USA flag and all. However, we are setting up a system which is targeting en-AU and en-NZ. When I rename the main 'en' language item in any database, every other item is left without a version in the "correct" language. I recall in the past that renaming this item causes an update across the whole system, but that didn't seem to be the case when I tried it today. Is there an easy "Sitecore" way to convert all default items to

What are the pros for using extension-less URLs?

别说谁变了你拦得住时间么 提交于 2019-12-04 15:48:27
问题 What are the pros for using extension-less URLs? For example, why should I change... http://yoursite.com/mypage.html http://yoursite.com/mypage.php http://yoursite.com/mypage.aspx to... http://yoursite.com/mypage And is it possible to have extension-less URLs for every page? Update: Are extension-less URLs better for site security? 回答1: The reason for extension-less URLs is that it is technology independent. If you want to change how your content is rendered you do not have to change the URL.

Sitecore OMS - achieving a goal on a form submission

强颜欢笑 提交于 2019-12-04 15:33:37
I inherited a Sitecore solution that has a sublayout that contains a complex ASP.NET ascx form which handles both payments and integration with 3rd party web services. This sublayout uses parameters templates to provide some level of control on the way the form looks like. The .ascx control contains multiple views: In the first view the user fills the form and click NEXT. In the second view the user can review the entered data before clicking the SUBMIT button. The third view is the thank you page of the form. If I want to create a goal for the submission of this form, am I supposed to set the