sitecore

WFFM 8.0 - Save to Database action missing

主宰稳场 提交于 2019-12-10 18:59:33
问题 I have just installed Web Forms For Marketers 8.0 and do a test form. Trying to select Save to Database from the list of action but it is not there. Also, I have checked /sitecore/system/Modules/Web Forms for Marketers/Settings/Actions/Save Actions but it is not there as well. Why did they remove saving to database? How do I return it back again (as that is a requirement on my existing project? 回答1: First of all, you should not worry about, saving to SQL database is still there. What happened

Razor MVC partialview pagination url action, How to define specified url?

三世轮回 提交于 2019-12-10 18:52:42
问题 Default url: http://ipf.bulgaria.local/Aboutus.aspx After click the pagination URL: http://ipf.bulgaria.local/api/sitecore/Newsfeed?page=2 Expected URL: http://ipf.bulgaria.local/Aboutus.aspx?page=2 Can someone advice me how to achieve the expected url and how to get read of "/api/sitecore/Newsfeed"? <div class="col-sm-10"> <div class="center"> @Html.PagedListPager((PagedList.IPagedList)Model .SelectedNewsItems, page => Url.Action("Index", new { page })) </div> </div> 回答1: It is about the MVC

Sitecore DateField's DateTime property shows wrong date

自闭症网瘾萝莉.ら 提交于 2019-12-10 18:29:08
问题 In my Sitecore project I use DateTime (Sitecore's type) field as propery of an Item . I'm trying to get this value by following code: var dateField = (DateField)item.Fields["Date"]; var itemDate = dateField.DateTime; But itemDate contains wrong date. Let's check dateField.Value : it contains correct date in format: yyyymmddThhmmss. You can see in the following screenshot: As you can see DateTime 's date is September 13, but Value 's date is September 14. What reasons of this problem? How to

Sitecore Glass mapper GetItem<TypeName>(guid) always return null

帅比萌擦擦* 提交于 2019-12-10 18:24:25
问题 I saw a related question: Sitecore Glass Mapper always null But unfortunately it does not give a solution for my case. Here goes a code snippet: var db = Factory.GetDatabase("master"); var context = new SitecoreContext(); // the ID of Needed item var g = new Guid("{F21C04FE-8826-41AB-9F3C-F7BDF5B35C76}"); // just to test if it's possible to fetch item using db.GetItem var i = db.GetItem(new ID(g), Language.Current, Sitecore.Data.Version.Latest); // Grab item var t = context.GetItem<Article>(g

Sitecore - How to import content?

混江龙づ霸主 提交于 2019-12-10 17:38:35
问题 So i got a new task to import content from a website to a new website built using Sitecore CMS. My client is doing a revamp basically. The previous website was built using a very old CMS and everything is in HTML format. I'm actually thinking to crawl the old website and dump all the contents in csv format or so...but I need to know.. if Sitecore provides a feature within the CMS or web service to import external data? If yes, in what format (csv, xml)? If not, may I know if there is any

Sitecore Fast Query - How to search for text containing special characters (such as an apostrophe)?

╄→尐↘猪︶ㄣ 提交于 2019-12-10 17:30:06
问题 Perhaps I'm blind but I can't find any documentation on escaping special characters for Sitecore's fast query. For example, I want to search content items that contain the following text in their description: "hot n' tasty" Note: I've tried the following escaping: var searchTerm = "hot n'' tasty"; // thought it might need to be escaped for sql var searchTerm = "#hot n' tasty#"; // this is how you do some other sitecore escaping var searchTerm = "hot n\' tasty"; Sample application code: var

Field Value change not being saved

旧城冷巷雨未停 提交于 2019-12-10 17:17:19
问题 I am trying to change a field value dynamically from back-end, but looks like the changes are not being saved. Code item is fetched from the master database. using (new EditContext(item)) { item.Editing.BeginEdit(); try { //Value is updated here from "" to Test item.Fields["Content"].Value = "Test"; } finally { //item.Fields["Content"].Value is "" again. item.Editing.AcceptChanges(); item.Editing.EndEdit(); } } UPDATE As @sitecore climber said, I did change my code back to use - new Sitecore

Conditional fields using web forms for marketers?

笑着哭i 提交于 2019-12-10 17:16:29
问题 I need to show/hide a field based on the value entered in another field. The field that is conditionally made visible also needs to be a mandatory field. Is this possible using WFFM? Will I need to do it using custom fields? Thanks! 回答1: You would need to build a custom complex type to do this. You might be able to re-use existing field types in your custom type, but it would probably be simpler to create them specifically for the new complex type. 回答2: You can use JQuery for this and also

Could not resolve type name: Glass.Mapper.Sc.Pipelines.Response.GetModel, Glass.Mapper.Sc

岁酱吖の 提交于 2019-12-10 16:56:07
问题 I am trying to use Glass Mapper in my MVC - v4.0.30319 project in Sitecore - 7.1. Following are my Glass Mapper version which I have installed Glass Mapper version - 3.0.10.23 Glass.Mapper.Sc version - 3.2.0.39 Glass.Mapper.Sc.Mvc version - 3.2.0.34 when I installed Glass mapper Mvc from nuget it added a config file called (Glass.Mapper.Sc.Mvc) in App_Config -> include folder Content of the file is as follows <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> <sitecore>

Sitecore Page Editor Publishing items related to content

时光怂恿深爱的人放手 提交于 2019-12-10 16:46:43
问题 I have a "Product Page",Product page maps to "ProductPage" Sitecore item. Website/Pages/ProductPage. I have a text area in that page with page editor, which loads text from "Product Example Text" Sitecore item's "Description" text from Web database. (Sitecore.../CommonText/Product Example Text) In my ascx file, mark up is pretty straigh forwad, <sc:FieldRenderer ID="FieldRenderer1" runat="server" /> Codebehind, FieldRenderer1.Item = //"Product Example Text" Sitecore item FieldRenderer1