sitecore7.2

'System.Web.Webpages.Html.Htmlhelper' does not contain a definition for 'Sitecore'

前提是你 提交于 2019-12-18 12:55:18
问题 I'm getting this error in Visual Studio, when I use @Html.Sitecore : 'System.Web.Webpages.Html.Htmlhelper' does not contain a definition for 'Sitecore' and the best extension methods overload 'Sitecore.Mvc.HtmlHelperExtensions.Sitecore(System.Web.Mvc.HtmlHelper)' has some invalid arguments.` However, once deployed it does run without any problems. I'm using Sitecore 7.2 with MVC 5.1. Articles that I've read that deal with similar error messages, talk about the system.web.webPages.razor

Content does not reflect on CD server after publishing from CM server

China☆狼群 提交于 2019-12-13 21:32:59
问题 When a content is published from Content Management server to Content Delivery server, the publishing activity is inconsistent, i.e., sometimes the content reflects on CD server in couple of minutes or takes a whole day. The only scenario where the content reflects immediately on CD server is by restarting the application pool, but this is not the best practice as content editing can be frequent and every time restarting the app pool may crash the application. Please suggest what other

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"

Sitecore ERROR rebuilding “Quick Search Index” after WFFM 2.4 install attempt - System.Threading.LockRecursionException

喜你入骨 提交于 2019-12-11 09:20:11
问题 I attempted to install WebForms for Marketers 2.4 on Sitecore 7.2 Initial Release. The install process would just hang, and never finish. I ultimately restored the databases from a backup, and restored the file structure. However, we started seeing hundreds (1300+ in the last 12 hrs) of these errors in the logs: ManagedPoolThread #11 23:59:31 ERROR Could not update index entry. Action: 'Saved', Item: '{656E306F-8837-42E6-8334-38E44D39B736}' Exception: System.Threading.LockRecursionException

Change sitecore item without redirect

早过忘川 提交于 2019-12-11 07:56:31
问题 I have a custom pipeline processor inserted after ItemResolver in which I overwrite the current context item with a new item selected by the content editor from a droplink. If I go to that dynamic item via a normal request through my website and through my processor and i change my context item, it will stil render the same item: public override void Process(HttpRequestArgs args) { // some code Context.Item = dropLink.TargetItem; } Strangely, if I issue a request via the item API, sitecore

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 CustomValidator does not fire on WFFM custom field

浪尽此生 提交于 2019-12-07 12:48:20
问题 I've try to extend SingleLineText field on WFFM on Sitecore. This field will have CustomValidator. But ServerValidate event does not fire when page postbacked. The snipped code below. public class SingleLineText : Sitecore.Form.Web.UI.Controls.SingleLineText { protected override void OnInit(EventArgs e) { base.OnInit(e); var validator = new CustomValidator() { Display = ValidatorDisplay.None }; validator.ServerValidate += this.Validator_ServerValidate; this.generalPanel.Controls.Add(validator

Sitecore CustomValidator does not fire on WFFM custom field

风流意气都作罢 提交于 2019-12-06 00:19:32
I've try to extend SingleLineText field on WFFM on Sitecore. This field will have CustomValidator. But ServerValidate event does not fire when page postbacked. The snipped code below. public class SingleLineText : Sitecore.Form.Web.UI.Controls.SingleLineText { protected override void OnInit(EventArgs e) { base.OnInit(e); var validator = new CustomValidator() { Display = ValidatorDisplay.None }; validator.ServerValidate += this.Validator_ServerValidate; this.generalPanel.Controls.Add(validator); } protected void Validator_ServerValidate(object source, ServerValidateEventArgs args) { // does not

Sitecore 7.2 - Item Web API-User Authentication

瘦欲@ 提交于 2019-12-05 06:27:29
I want to restrict the Sitecore Item Web API to send data to authenticated user only & as per the documentation,we need to pass the user name & password in http request header as X-Scitemwebapi-Username & X-Scitemwebapi-Password To achieve this,I used below code: HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://scapidemo.local/-/item/v1/?sc_itemid={110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}&sc_database=master"); request.Headers["X-Scitemwebapi-Username"] = "admin"; request.Headers["X-Scitemwebapi-Password"] = "b"; HttpWebResponse response = (HttpWebResponse)request.GetResponse();

How to generate custom unique ID

一世执手 提交于 2019-12-02 04:44:22
问题 We are using Sitecore 7.2 with multi-site implementation. The actual data is shared between multisite, hence it's been stored in common Global Item folder. We are facing a problem generating aunique ID on URL. I had a good search but could not find any solution except to use Sitecore Item ID. This is what we want: domain/players/player_id e.g. domain/players/1234 where 1234 is uniquely generated ID. Could someone please suggest if this is possible? 回答1: Every page that is managed in Sitecore