sitecore

Get Profile Key Score for Individual Page in Sitecore

徘徊边缘 提交于 2019-12-22 11:11:24
问题 I have a question regarding Sitecore Analytics and user profile keys. I need to be able to get the score of a profile key for an individual page. For example, if I have a profile key called "traveler" that could have a value of 1-10 on a given page, I need to be able to get the value for that key that was assigned by the content author. I have found that by using the following: Sitecore.Analytics.AnalyticsTracker.Current.Data.Profiles.GetProfile("Profile Name").GetProfileKeyValue("traveler")

jQuery update of asp:HiddenField fails to be persisted across postback

我是研究僧i 提交于 2019-12-22 10:29:16
问题 I have a sublayout in sitecore (which is an ascx control) which contains a hidden field and an image map. Depending on the area of the image map which is clicked, I want to set the value of the hidden field, then initiate a postback to the server. My markup is as follows: <script type="text/javascript"> function SetRegion(regionName) { $('#<%=hdnRegion.ClientID%>').val(regionName); __doPostBack('<%=lnkRedirectButton.UniqueID%>', ''); } </script> <img src="/Images/Interface/Map-Background.png"

How to display a popup when saving a Sitecore item?

那年仲夏 提交于 2019-12-22 08:57:59
问题 When saving a Sitecore item I am trying to display a popup to interact with the user. Depending on data that they have changed I may display a series of 1 or 2 popups asking them if they want to continue. I have figured out how to tap in to the OnItemSaving pipeline. That is simple. What I can't figure out is how to display a popup and react to the input from the user. Right now I am thinking that I should be using the Sitecore.Context.ClientPage.ClientResponse object somehow. Here is some

Sitecore allow role to publish content in specific areas only

与世无争的帅哥 提交于 2019-12-22 07:08:46
问题 I am trying to create a role within Sitecore which can publish content, but only within a specific area(s) of the site. I've added the standard Sitecore\Client Publishing role to my role, but I can't see how to prevent the role from being able to publish all areas of the site. I've looked at the Security editor and the Access viewer, but setting the write access of the sections only seems to affect the ability to edit those sections and has no effect on the ability to publish on those

How to use internal links with wildcard items in Sitecore?

我只是一个虾纸丫 提交于 2019-12-22 06:33:31
问题 I have a multiple site Sitecore solution. All the sites share a product range which is stored inside a 'Shared data' node that sits at the same level as the root nodes of the sites. The individual product pages on a site use a wildcard item to lookup the product based on the last part of the URL. This means that we can't use internal links in the rich text editor to point to the product page on any of the sites because the product item does not have a specific site URL. Does anyone know of a

Find all the item that is using a common Sublayout in sitecore 6.2.0

耗尽温柔 提交于 2019-12-22 05:27:10
问题 Is it possible to obtain a list of all the items in sitecore that is using common sublayout or XSLT's in presentation tab for rendering i.e. suppose there is sublayout called layout1.ascx that is being used by 5 items.is it possible to obtain the list of all these 5 items by search method. Thanks in advance. Regards, Divya 回答1: You probably need to do this in two steps (or one if it's only 1 template). You need to use the Link database. The simplest way of seeing these "links" is to go to the

Upgrading sitecore 6.6 index configuration to sitecore 7 (using ComputedFields)

笑着哭i 提交于 2019-12-22 05:11:56
问题 Sitecore CMS+DMS 6.6.0 rev.130404 => 7.0 rev.130424 In our project we have been using AdvancedDatabaseCrawler (ADC) for our indexes (specially because of it's dynamic fields feature). Here's a sample index configuration: <index id="GeoIndex" type="Sitecore.Search.Index, Sitecore.Kernel"> <param desc="name">$(id)</param> <param desc="folder">$(id)</param> <analyzer ref="search/analyzer" /> <locations hint="list:AddCrawler"> <web type="scSearchContrib.Crawler.Crawlers.AdvancedDatabaseCrawler,

How to get content of rendering programmatically?

社会主义新天地 提交于 2019-12-22 04:09:31
问题 I am attempting to write a method that will output the content (i.e. HTML) for any renderings that happen to exist within a specific placeholder. The goal is to pass in a Sitecore.Data.Items.Item and the placeholder key that i'm interested in, and the method should return the rendered content. The issue with this seems to be that there is no page context established, and therefore calling RenderControl() is throwing a null reference error in the GetCacheKey() method of the Sublayout. Is

Clarification on Sitecore A/B Testing Results

匆匆过客 提交于 2019-12-21 22:28:21
问题 We have recently started using Sitecore A/B Testing and I am getting lots of questions about how the scoring works. I have been through the relevant Sitecore DMS documents but I still am not 100% sure if I understand how the scoring works. My basic understanding is that the scores are based on Value Per Visit and my assumption is that the the value relates to the whole visit and not just the specific components we may be trying to optimize with the A/B Test. For example, if option A has a

Azure SQL Azure AD Authentication Failure

♀尐吖头ヾ 提交于 2019-12-21 20:07:24
问题 I am trying to connect to my Azure SQL Database that has a Azure Active Directory Database Contained User from my .NET Application (Sitecore). I have the adalsql.dll installed on the VM hosting the .NET Application. However, when I attempt to connect, I receive the following error: Failed to authenticate the user test@mytest.onmicrosoft.com in Active Directory (Authentication=ActiveDirectoryPassword). Error code 0xCAA20064; state 10 AADSTS50055: Force Change Password. Here is my