sitecore

Can I still access a sitecore contact facet once session is flushed?

半城伤御伤魂 提交于 2019-12-04 04:07:11
问题 I'm hoping I've not gotten the wrong end of the stick here (as always the sitecore documentation is woeful!) I wanted a way to store information against a visitor, I'm reasonably new to sitecore, but the contact facets seemed the idealsolution, pretty much implemented word for word from the link above, until it hit production I was quite pleased with it. When I stored information it persisted, I could read it: public IMpmVisitorFacet GetMpmVisitorFacet() { return _contact.GetFacet

How to find ancestor-or-self that is a child of an element with particular attribute?

旧巷老猫 提交于 2019-12-04 03:56:45
问题 I'm working with a very generic XML structure, where everything is an item (well everything relevant to this question anyway). Based on knowing the item element I'm currently on and the item element that is the parent of the node I'm looking for, I need to find an item. I have a working xpath, but it's fairly resource intensive and I'm looking for something more elegant and cheaper. The item key=a node is the parent of the element I'm looking for (though it's not actually a child of the

How do I get the value of a WFFM field as a tag and output it in a Sitecore DMS report?

不打扰是莪最后的温柔 提交于 2019-12-04 03:56:38
问题 If I create a Web Forms For Marketers form with Analytics enabled I can choose to add each field as a tag to a Visitor. I can't see how to configure which tag they should be added to, or even what the tag is called by default (I'm assuming a tag with the field name is created). I'd also like to know how to retrieve the tag data in a visit report (i.e. the one you'd get if you double clicked on a form submission in the Form Reports dialogue). I can see how to access plenty of inbuilt tags, but

How to limit Sitecore Language Write to only certain parts of the content tree

 ̄綄美尐妖づ 提交于 2019-12-04 03:54:33
问题 In our Sitecore implementation, we have branch editors who will need language write access to both English and their native language (e.g. German). However, we have certain portions of our content tree where the English version should not be editable by those branch editors, but the native language version should. To give a specific example, if we have a product page that has some global information on it (e.g. a part number), and some localizable information on it (e.g. a description field),

Sitecore page editor - how to extend page editor item editing panel

谁说胖子不能爱 提交于 2019-12-04 03:47:15
问题 Need to add "publish" feature to the page editor, item editing section. (Under the "More" section would be ideal). How can I do this? 回答1: First you need to create a command class. The simplest version would be: using System; using Sitecore.Shell.Applications.WebEdit.Commands; using Sitecore.Shell.Framework; using Sitecore.Shell.Framework.Commands; namespace my.assembly.namespace { [Serializable] public class Publish : WebEditCommand { public override void Execute(CommandContext context) { if

Sitecore 8 EXM add a contact to list from listmanager

久未见 提交于 2019-12-04 03:42:10
问题 I'm using Sitecore 8 and the new Email Experience Manager module. I have configured a newsletter email message with an empty list from the listmanager as recipients. When subscribing for the newsletter via a selfmade form, I receive an email address and a name. Now I want to make a new contact with this mail and name and add it to the list in my listmanager via code. Is there any way to call this list via the api and add a contact to it? 回答1: I have had the exact same issue, i.e. the list

ASP .Net File Upload Maximum request length exceeded error

巧了我就是萌 提交于 2019-12-04 03:18:04
I have a simple ASP .Net file upload control on a page. I have following web.config settings <system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="524288000" /> </requestFiltering> </security> </system.webServer> <system.web> <httpRuntime maxRequestLength="524288" executionTimeout="120000" /> </system.web> I am using IIS 7.5 on my dev box and IIS 7 on web server. If i upload file of size 7MB, it works fine. But when i upload file which is 10MB, it will throw following exception I have a simple ASP .Net file upload control on a page. I have following web

Sitecore 8.1 index rebuild strategy for SOLR search provider

一个人想着一个人 提交于 2019-12-04 03:01:48
问题 Just read through the index update strategies document below but couldn't get the clear answer on which strategy is best for SOLR search implementation: https://doc.sitecore.net/sitecore_experience_platform/search_and_indexing/index_update_strategies We have setup the master and slave Solr endpoints where master will be used for create/update. And slave for reading only. Appreciate if you could suggest the indexing strategy to be used for: Content Authoring Content Delivery Solution is hosted

Sitecore package install never ends

五迷三道 提交于 2019-12-03 23:17:00
I got an interesting problem. When I install a Sitecore package the user interface never gets updated when the package is fully installed. The Sitecore package installation is hanging. In the Sitecore logs I see: ManagedPoolThread #18 11:36:00 INFO Installing item: items/master/sitecore/system/Tasks/Schedules/Portals/Default/{BEA47CD0-C3B3-4EFD-A781-997292620312}/nl/1/xml ManagedPoolThread #18 11:36:00 INFO Installing item: items/master/sitecore/system/Tasks/Schedules/Portals/Default/foobar/{4E0129CF-1C03-4BC8-B049-7D641D46797C}/en/1/xml ManagedPoolThread #18 11:36:00 INFO Installing item:

Sitecore text search in PDF or Word documents

与世无争的帅哥 提交于 2019-12-03 20:13:59
I want to find out if it's possible to configure Sitecore's Lucene search engine to index PDF or Word documents? I've looked on the Sitecore support site at this document ( http://sdn.sitecore.net/upload/sitecore6/65/sitecore_search_and_indexing_sc60-65-a4.pdf ) but it mentions creating a file crawler class which suggests to me that it's only possible to achieve this by writing custom code. If I do need to write custom code to do this, would I also need to have some API in order to extract the text content from PDF documents? Arnold Zokas I've recently had to do something similar on one of my