sitecore

Using Glass Mapper's @inherits GlassView<T> with MVC 5.0 views

淺唱寂寞╮ 提交于 2019-12-13 05:09:09
问题 I recently updated my solution to MVC 5 and I am facing the following issue. It appears as though I can no longer format the code in any of my Views that utilize @inherits GlassView<T> . By format, I mean auto-formatting using the CTRL + K + D key combination. When I press the format combination, the namespace and class name get lowercased and all references to Model appear to break. This only occurs on GlassViews... traditional Views using a @model declaration appear to be unaffected. Any

Repercussions of Changing Sitecore Rendering of PDFs from .ashx to DownloadMedia.aspx?media={GUID}

时光怂恿深爱的人放手 提交于 2019-12-13 05:02:43
问题 There are two ways on our sitecore website we are associating an item (article) with a related media PDF item: One way is by clicking the "Insert Sitecore Link" button in the RichTextEditor of a content value field of that content item, which produces something like: < a href="~/media/EB5BA6C0CCCF4781B668DE863EE996D9.ashx">emad_pdf_test_1< /a > < a href="~/media/1978B759E83348CFB23870AE31494765.ashx">emad_pdf_test_2< /a > The second way is by choosing the related media PDF item by selecting

Sitecore MVC Controller and Forms - ActionResult not rendering Layout on postback

时光总嘲笑我的痴心妄想 提交于 2019-12-13 04:06:12
问题 Sitecore 7.1v1, most recent Glass Mapper, MVC4. When we submit the form POST, we get no layout with the return View. I'd prefer not to have to redirect to another page since this is supposed to be a wizard-like experience. This is also lightweight enough not to require Ajax, although we could use it as a last resort. I can't find who to make sure that while returning the View that we get the layout as well. I'm new to Sitecore MVC and pretty new at MVC in general. The PageBase that's

Sitecore issue: Could not get pipeline: listManagement.getLockedLists (domain: )

旧街凉风 提交于 2019-12-13 03:58:54
问题 I have found following error message in log file: ManagedPoolThread #16 11:21:54 INFO Job started: Sitecore.ListManagement.Analytics.UnlockContactListsAgent ManagedPoolThread #16 11:21:54 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.RuntimeMethodInfo

Gridview empty when SelectedIndexChanged called

纵然是瞬间 提交于 2019-12-13 03:42:25
问题 I have a DataGrid which is being bound dynamically to a database query. The user enters some search text into a text field, clicks search, and the code behind creates the appropriate database query using LINQ (searches a table based on the string and returns a limited set of the columns). It then sets the GridView datasource to be the query and calls DataBind(). protected void btnSearch_Click(object sender, EventArgs e) { var query = from record in DB.Table where record.Name.Contains

SiteCore - JSON showing on the pages where controls should be in the page editor

怎甘沉沦 提交于 2019-12-13 02:37:19
问题 I'm in the page editor and I'm seeing JSON where editor controls should be {"commands":[{"click":"chrome:field:editcontrol({command:\"webedit:chooseimage\"})","header":"Choose Image","icon":"/~/icon/SoftwareV2/16x16/photo_landscape.png.aspx","isDivider":false,"tooltip":"Choose an image","type":null},{"click":"chrome:field:editcontrol({command:\"webedit:editimage\"})","header":"Properties","icon":"/~/icon/SoftwareV2/16x16/palette_preferences.png.aspx","isDivider":false,"tooltip":"Modify image

How to do Unit Of Work pattern on top of Sitecore's publishing workflows?

杀马特。学长 韩版系。学妹 提交于 2019-12-13 02:26:37
问题 I'm wondering if anyone has ever needed to implement a Unit Of Work pattern on top of Sitecore's publishing workflows? We have a requirement to workflow an 'article' that has multiple linked 'sub-articles', all of which are edited in a block and need to be workflowed through contribution, review and signoff states. Any ideas? Update 24.10.2012 based on Kevin Obee comment: Yes, this look like very interesting approach! Based on it we came up to some similar idea. Instead of creating a

Map sitecore 8 general link field from Index

☆樱花仙子☆ 提交于 2019-12-13 01:18:09
问题 I am using sitecore content search API to get the general link field from sitecore index. Below is my model public class GrantItem : BaseSearchItem { [IndexField("grant_name")] public string GrantName { get; set; } [IndexField("grant_description")] public string GrantDescription { get; set; } [IndexField("grant_categories_sm")] public CategoryItem[] GrantCategories { get; set; } [IndexField("grant_status_s")] public CategoryItem GrantStatus { get; set; } [IndexField("grant_application_type_sm

Sitecore GetQueryable Filter not returning any result for SOLR after switch from Lucene

丶灬走出姿态 提交于 2019-12-12 19:23:25
问题 I'm in process of switching the Sitecore Lucene Search provider to Solr. Cores have been configured and I can rebuild all the COREs with no problem. I also updated the computed index fields per Solr mapping requirements. However, for weird reason the query below isn't returning any results. using (var context = index.CreateSearchContext(SearchSecurityOptions.DisableSecurityCheck)) { var query = context.GetQueryable<ArticleSearchResultItem>().Filter(item => item.Category == categoryId); var

sitecore 6.6 lucene version incompatibility

自闭症网瘾萝莉.ら 提交于 2019-12-12 18:29:00
问题 I'm upgrading to sitecore 6.6 rev 120918 I'm using lucene 2.9.4.1 When going to the console index manager > choosing an index and then browse documents I get the error: Could not load file or assembly 'Lucene.Net, Version=2.3.1.3, Culture=neutral, PublicKeyToken=null' or one of its dependencies. My understanding is that is a deprecated version, any insights on how can I solve this? 回答1: I presume you used the Index Viewer from Sitecore Marketplace? You need to make sure you are running the