sitecore

Sitecore Workbox, display item field for name?

随声附和 提交于 2020-01-02 14:10:09
问题 By default Sitecore workbox displays the item name, I want to display the "Title" field (Custom field). How can I do this? 回答1: I had a similar requirement where a client needed the Workbox to display the item's 'path' instead of it's name. The problem was that many of their items shared the same name - making it difficult to distinguish between items. Unfortunately, this change required us to make a custom implementation of the Sitecore WorkboxForm class. I would normally not recommend

Multivariate Testing for Sublayouts in Sitecore

人盡茶涼 提交于 2020-01-02 09:31:48
问题 Having toyed with the concept in the past, I am interested in using multivariate testing on my companies Sitecore website. There are a number of places where I feel we can definitely improve sales through the use of A/B testing in: Running two entirely different templates to see what layouts work better for users Running a number of different Sublayouts (forms) on the site to see which ones people are more likely to fill out Trialling different content - Running two different sets of copy to

Sitecore - Hide Button in Ribbon

强颜欢笑 提交于 2020-01-02 06:11:17
问题 I created a Contextual Ribbon for a specific content item. I have two buttons that will "promote" or "demote" the item to a certain category (there can only be one in the section). Is it possible to hide one of the buttons based on the contents state in some sort of code behind? I understand how to link up to the Click event, but I was wondering if there was some sort of load event for the custom ribbon to access. 回答1: Seems I can use the same class that inherits from Command to override the

Sitecore - Hide Button in Ribbon

寵の児 提交于 2020-01-02 06:10:21
问题 I created a Contextual Ribbon for a specific content item. I have two buttons that will "promote" or "demote" the item to a certain category (there can only be one in the section). Is it possible to hide one of the buttons based on the contents state in some sort of code behind? I understand how to link up to the Click event, but I was wondering if there was some sort of load event for the custom ribbon to access. 回答1: Seems I can use the same class that inherits from Command to override the

How do you configure Lucene in Sitecore to only index the latest version of an item on the master db?

江枫思渺然 提交于 2020-01-02 03:29:27
问题 I recognise this is a moot point on the web database, so this question applies to the master db... I have a custom index set up in Sitecore 6.4.1 as follows: <index id="search_content_US" type="Sitecore.Search.Index, Sitecore.Kernel"> <param desc="name">$(id)</param> <param desc="folder">_search_content_US</param> <Analyzer ref="search/analyzer" /> <locations hint="list:AddCrawler"> <search_content_home type="Sitecore.Search.Crawlers.DatabaseCrawler, Sitecore.Kernel"> <Database>master<

Sitecore View Rendering and Controller Rendering Helper

做~自己de王妃 提交于 2020-01-02 02:46:08
问题 I have a sitecore application that use this method : @Html.Sitecore().ViewRendering("Path to the View") @Html.Sitecore().Controller("Controller Name", "Controller Action") This works perfectly fine even without I create an item for that rendering in Sitecore CMS Then what is the difference between that method with simple ASP MVC method : @Html.Partial("Path to the View") @Html.Action("Controller Name", "Controller Action") Both same or not? I feel little confused here 回答1: @Html.Sitecore()

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

依然范特西╮ 提交于 2020-01-01 06:43:06
问题 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

Sitecore EventQueue Table growing out of control

旧街凉风 提交于 2019-12-31 11:00:23
问题 We are having an issue with the EventQueue table growing very fast at times, up to 3k records a second, and never clearing records (30 million as of right now). Our environment has the following set up: Sitecore 7.2 4 CD servers and 1 CM server All four CD servers are load balanced. CD1 and CD2 are pointed to DB1 server CD3 and CD4 are pointed to DB2 server There are 2 Publishing targets (one for each DB) Merge Replication is setup for the Core db across all servers (CM, CD's) EventQueue is

Sitecore query/fast query for user

微笑、不失礼 提交于 2019-12-31 04:57:05
问题 Is there a way to use fast query or query to get a user by email or a custom field? I tried this but it didn't work in the Query Tool /sitecore/user//*[@@templateid='{642C9A7E-EE31-4979-86F0-39F338C10AFB}' AND @email='abc@123.com'] 回答1: You cannot query (via Sitecore Query or Fast Query) users in the User Manager because they are not items, they're actually built on ASP.NET Membership in the Core database. Instead, you can look into something like Membership.GetAllUsers() (MSDN doc) and

Programmatically removing sublayouts in Sitecore

心已入冬 提交于 2019-12-31 02:03:38
问题 Does anyone know how to remove the renderings from a Sitecore item? I want to remove all of the sublayouts so I can replace them with a new set. I have tried this but it does not seem to work. Nothing changes on the item. I appear to be able to get the renderings like this: RenderingReference[] renderings = item.Visualization.GetRenderings(Sitecore.Context.Device, true); But there appears to be no way to then set them. I can also get the renderings like this (from the link above):