sitecore

Sitecore + Lucene + QueryOccurance.Should not returning desired results

北慕城南 提交于 2019-12-24 03:31:30
问题 I Am using Alex Shybas Advanced DatabaseCrawler and it is working beautifully... almost... I Am using for a carsales application in which you can search for a car using the following values Model Make Fuel Mileage Price Year (Registration date) I have multiple NumericRange queryies: -1000 - 0 (this is for those dealers, that do not want the price online. They write the price as -1) bottom to top ie. (10000 - 20000) This is what i want to sort by The are both in the same

Sitecore page component architecture suggestions

旧巷老猫 提交于 2019-12-24 03:15:37
问题 We have developed a Sitecore site for a client who will primarily be using Page Editor. We've built page type layouts and then componentized everything else, including sub-layouts of content. This allows them the most flexibility when building pages. So, an author goes to a page selects the main content area (Placeholder) of the page and inserts basic building block components that we've created. These include Rich Text box, page promos, etc. they can use these to build pretty rich pages with

Varying content and presentation by host name in Sitecore 6.4

喜你入骨 提交于 2019-12-24 02:09:56
问题 Scenario: A section of the content tree is the home item for a site that runs under two host names (www.site1.com and www.site2.com The purpose of the two host names is to differentiate between two target countries that are served with the same content, and the same organisation (marketing department, web editor etc.) The content is, of course, identical across the two host names. Except.... In a couple of places we need some small differences. A contact email, for instance, or a legal notice

Sitecore - Webforms For Marketers Form - Use ReadQueryString Option

萝らか妹 提交于 2019-12-24 02:01:52
问题 When one has added a WFFM form to a Sitecore Item, you can go to the Presentation Details and click on Form. There you'll see an option called ReadQueryString - Reads initial values from the url query string. My form has a few fields, one of which being Email . I tried adding ?Email=test to the URL of the page that hosts this form, but the value is not being picked up. Am I correctly understanding the intended purpose of this option? Am I using it correctly? Sitecore version 6.5; Web Forms

How to do a Lucene search with Sitecore item with specific date?

纵然是瞬间 提交于 2019-12-24 01:45:10
问题 I've a Content item is Sitecore with the date field named 'EventDate'. I want to search those items with specific date using Lucene.Net. Below is the code I've tried but i am not getting the result: var index = SearchManager.GetIndex("event_search_index"); var items = new List<EventDetailItem>(); var eventDateString = eventDate.Year.ToString("D4") + eventDate.Month.ToString("D2") + eventDate.Date.Day.ToString("D2"); using (var context = new IndexSearchContext(index)) { var searchTerm = new

Render a General Link in Sitecore with target=“_blank”

我怕爱的太早我们不能终老 提交于 2019-12-24 00:16:45
问题 In Sitecore I have a General Link which is set as an external link. What is the simplest way for me to render this link so that I get target="_blank" on my page and it opens in a new window? 回答1: If I understand you correctly, you have a General Link field, and you'd like it to hold a reference which is to open in a new window. If that's the case, the image below should answer your question: 回答2: In addition to what Yan said about configuring the link in Sitecore, if you need code to render

Sitecore Web forms for marketers 2.4 file upload on content delivery server error (WFFM)

余生颓废 提交于 2019-12-23 22:20:06
问题 Web Form For Marketers 2.4 question Situation: I'm getting technical error on a form with file upload field when form is submitted from content delivery server. Sofar I could identify that the problem happens on CD servers because there is no reference to master database. I appreciate that WFFM documenation says that FileUpload field works with master database, but at the same the documentation also mentions possibility to use "remoteWfmService". But even after configuring web service I see

How can I remove duplicated page events in Sitecore 8.1?

醉酒当歌 提交于 2019-12-23 20:26:57
问题 I have a processor in the <registerPageEvent> pipeline that checks whether an event is duplicated and removes it. It works well on 7.2, but I have to upgrade to 8.1 Update 3 and I can't find a way to remove an already added page event. Is this possible and how can I do that? Piece of code from 7.2: Tracker.Visitor.DataSet.PageEvents.Rows.RemoveAt(Tracker.Visitor.DataSet.PageEvents.Count - 1); 回答1: You cannot remove events via the API starting from Sitecore 7.5. (The only way around would be

Get media url in View in Sitecore MVC

五迷三道 提交于 2019-12-23 18:23:22
问题 I have a mp3 file that is stored in the media library. It is referenced in a media field on an item. I can get the URL by doing Sitecore.Resources.Media.MediaManager.GetMediaURL() in webforms or a class. But how can I achieve this in a MVC view? When I dump the field it just renders a html tag. I want to pull out the url only. Also, is there a reference for something like this? Thanks 回答1: You can write an extension method to get the media item URL. Something like this will work (you should

How to pass “[Sitecore Mobile SDK] Data from the internet has unexpected format” Exception in Sitecore

我与影子孤独终老i 提交于 2019-12-23 16:18:29
问题 I am working on Sitecore Mobile SDK and I have a field named [Email]. I can't insert the data of Email's field into Sitecore because the exception : [Sitecore Mobile SDK] Data from the internet has unexpected format How I can fix this problem ? Update : I update my question as request. My code as below : var builder = ItemWebApiRequestBuilder.CreateItemRequestWithParentPath("/sitecore/content/home") .ItemTemplatePath(@"User Defined/MyTemplate") .ItemName("myItemName"); and