sitecore

How can I set up a Lucene index in Sitecore that handles security correctly?

核能气质少年 提交于 2019-12-12 05:44:05
问题 I have a number of different roles in Sitecore. And I have set security permissions on my content items so that different roles can only access certain content items. It seems that Lucene will just index all of the content. And when I query Lucene it doesn't pay any attention to the security. Is there any way to get Lucene to only return items that the current Extranet user has access to? Thanks, Corey 回答1: Not to my knowledge. But when working through the Hits collection, you would normally

Glass Mapper t4 null or empty string

心不动则不痛 提交于 2019-12-12 04:56:55
问题 I'm trying to setup Glass Mapper to generate my Sitecore items. I've followed every tutorial I could find, but receive this error when attempting to generate the code: "Loading the include file 'Helpers.tt' returned a null or empty string. The transformation will not be run." A file is generated but repeats the word "ErrorGeneratingOutput" over and over. Screenshots: 回答1: As well as what Ehab has suggested, you may also have to remove the empty line at the end of GlassV3Header.tt otherwise

(Sitecore) Navigation with Subnavigation

做~自己de王妃 提交于 2019-12-12 04:56:51
问题 I'm trying to build main navigation with drop down subnavigation menu anchors. I got the HTML with CSS ready, but I don't know how to do it in the sublayout and its code behind. I have done a lot of navigations, but those were all 1-dimensional menus using asp:repeaters or asp:ListViews. Can anyone point me to the right direction? 回答1: Essentially you will want to have nested repeaters on the number of levels (or "dimensions") you want to display on your navigation. See an example below. <asp

Sitecore logs out when I select a message in ECM

妖精的绣舞 提交于 2019-12-12 04:48:32
问题 Whenever I select a message in ECM it redirects me to the login page of Sitecore with the following URL at the top http://example.com/sitecore%20modules/shell/EmailCampaign/UI/Dialogs/MessageBody.aspx?message={79D6412B-824A-4349-8B94-9136D17C6E84}&lang=en&contact=Emailcampaign\exampleuser_at_example_dot_com The following are the things I know about this issue: Though this happens most of the times, Sometimes it will work for the same message and for the same preview user (For the contact

Using a Sitecore CMS pipeline processor, how do I redirect a user based on their IP address?

喜你入骨 提交于 2019-12-12 04:08:40
问题 I am trying to do this with an httpRequestBegin pipeline processor, but I don't seem to be able to access the user's IP address from the given HttpRequestArgs parameter. When I implement a class that has this method public void Process(HttpRequestArgs args) { string ipAddress = args.Context.Request.UserHostAddress; // Not working string state = GetState(ipAddress); // already implemented elsewhere RedirectUserByState(state); // already implemented elsewhere } I thought that this might hold

IS Accessing DropList Value of Sitecore WFFM Control in Javascript Possible?

淺唱寂寞╮ 提交于 2019-12-12 03:58:38
问题 I am using Sitecore 7.2 with Web Forms for Marketers 2.4. Using wffm form designer I created a form that has a droplist in it. I want to be able to hide or unhide another field in the same form based on the selected value of the droplist. Through my research I came up with exporting the form (via form designer export) and pointing the sublayout to that exported form. I then added and onChange event to the droplist. <cc3:droplist runat="server" title="Country" emptychoice="True" id="field_xyz"

TDS: 'Build fo GetFrameworkPaths failed' after upgrade

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 03:50:57
问题 I've upgraded my TDS to 5.5 and now I get the following error when opening a solution containing a TDS project with Visual Studio: TDS failed to change configurations with the error 'Build of GetFrameworkPaths failed.'. Please see the output window for more details. 回答1: This is a known issue not yet fixed by Hedgehog. They do provide a workaround: http://www.hhogdev.com/blog/2016/may/common-problem-after-tds-5,-d-,5-upgrade.aspx To save some time you can just delete the C:\Program Files (x86

how to create search function in sitecore

谁都会走 提交于 2019-12-12 03:49:34
问题 I am trying to setup a very basic search index, to index all items in a specific folder. but I'm fail to do it. Please, check my code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Sitecore.Data.Items; using Sitecore.ContentSearch; using Sitecore.Search; using Sitecore.ContentSearch.SearchTypes; using Sitecore.ContentSearch.Linq; using Sitecore.Data; protected void Page_Load(object sender,

Sitecore 8.1 : Lucene.Net.Store.LockObtainFailedException

╄→гoц情女王★ 提交于 2019-12-12 03:28:01
问题 We have sitecore 8.1 hosted in Azure WEB Apps. The setup is 1xCA and 2xCD and using LUCENE We noticed a error log below which I googled but could not get solution. ManagedPoolThread #12 2015:12:28 23:22:33 ERROR Exception Exception: System.Reflection.TargetInvocationException Message: Exception has been thrown by the target of an invocation. Source: mscorlib at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection

Clarification on Azure Web App Scale Instance

半城伤御伤魂 提交于 2019-12-12 03:23:01
问题 Per article below web app has an option to either auto or manual scale: https://azure.microsoft.com/en-us/documentation/articles/insights-how-to-scale/ Would appreciate if I can get clarification on below: Scenario: I've ASP.NET Sitecore CMS which uses Lucene behind the scene for search. Lucene index gets rebuilt upon publish of new pages. Lets say I manually or auto scale to 2 instances: What exactly happens behind the scene i.e. copies all the website folder to new VM and sets up IIS etc?