sitecore7

The model item passed into the dictionary is of type 'Sitecore.Mvc.Presentation.RenderingModel', but this dictionary requires a model item of type 'X'

左心房为你撑大大i 提交于 2020-01-31 16:54:05
问题 I am building a solution with Sitecore 7 and ASP.NET-MVC 3 and trying to use a custom model class as described in this blog post by john west. I have seen several other questions here on SO reporting a similar error with ASP.NET-MVC (without Sitecore), usually related to passing the wrong type of object in controller code, or there being a configuration error with the \Views\web.config file, but neither seem to be the issue here. 回答1: this issue is caused when you create a view rendering

How to perform search for multiple terms in Sitecore 7 ContentSearch API?

时光总嘲笑我的痴心妄想 提交于 2020-01-22 12:32:05
问题 I am exploring the new Sitecore.ContentSearch "LINQ to Sitecore" API in Sitecore 7. It is my understanding that Sitecore recommends using the new LINQ API over the existing Sitecore.Search API, however, I am struggling to perform even the simplest of queries. Take for instance the following search query: "hello world" . Using the Sitecore.Search API, the terms "hello world" would typically be passed through a QueryParser which would result in documents matching the word "hello" OR "world".

How to perform search for multiple terms in Sitecore 7 ContentSearch API?

我与影子孤独终老i 提交于 2020-01-22 12:31:26
问题 I am exploring the new Sitecore.ContentSearch "LINQ to Sitecore" API in Sitecore 7. It is my understanding that Sitecore recommends using the new LINQ API over the existing Sitecore.Search API, however, I am struggling to perform even the simplest of queries. Take for instance the following search query: "hello world" . Using the Sitecore.Search API, the terms "hello world" would typically be passed through a QueryParser which would result in documents matching the word "hello" OR "world".

'ASP._Page_sitecore_shell_client_Speak_Layouts_Layouts_Speak_Layout_cshtml' does not inherit from 'System.Web.WebPages.WebPage

筅森魡賤 提交于 2020-01-14 12:54:12
问题 When we try to browse images in sitecore 7.1 application are getting the below error which is migrated from 6.2 to 7.1. Type 'ASP._Page_sitecore_shell_client_Speak_Layouts_Layouts_Speak_Layout_cshtml' does not inherit from 'System.Web.WebPages.WebPage 回答1: What you need to do is either: Go to your App_Config/Include folder, and rename Sitecore.MVC.config.disabled to Sitecore.MVC.config ; Or disable SPEAK (by renaming the SPEAK configs). 来源: https://stackoverflow.com/questions/20471147/asp

'ASP._Page_sitecore_shell_client_Speak_Layouts_Layouts_Speak_Layout_cshtml' does not inherit from 'System.Web.WebPages.WebPage

為{幸葍}努か 提交于 2020-01-14 12:53:35
问题 When we try to browse images in sitecore 7.1 application are getting the below error which is migrated from 6.2 to 7.1. Type 'ASP._Page_sitecore_shell_client_Speak_Layouts_Layouts_Speak_Layout_cshtml' does not inherit from 'System.Web.WebPages.WebPage 回答1: What you need to do is either: Go to your App_Config/Include folder, and rename Sitecore.MVC.config.disabled to Sitecore.MVC.config ; Or disable SPEAK (by renaming the SPEAK configs). 来源: https://stackoverflow.com/questions/20471147/asp

Sitecore: The layout for the requested document was not found

杀马特。学长 韩版系。学妹 提交于 2020-01-14 05:10:08
问题 Only when I go to preview an item from the Content editor I get an error message The layout for the requested document was not found. I get redirected to http:///?item=%2f&layout=%7b00000000-0000-0000-0000-000000000000%7d&device=Default However, if I take the url and type it in directly or cut and paste like http:///?sc_itemid=%7BDA4BABB2-2605-46C5-8BA6-52215A826154%7D&sc_mode=preview&sc_lang=en Preview works. If I load the previous backup it works, I am trying to figure out the difference

sending data from one sublayout to another in sitecore

泄露秘密 提交于 2020-01-12 08:28:13
问题 I'm having a hard time building a filtering system in Sitecore 7. I have 2 sublayouts, on the same level of the page. Sublayout A is a sidebar that contains a list of checkboxes and has an event that populates a List with the selected values. Sublayout B displays a set of items. What I would like to do, is send the populated List from sublayout A to sublayout B in order to filter the items list based on what the user selected. I was able to do this by passing the data through Session, but

Strange Timeout in Sitecore 7

荒凉一梦 提交于 2020-01-12 07:59:26
问题 I've been using Sitecore version 7.1 for a few months now and have noticed that the Sitecore client logs me out after being idle for around 20 mins. Also other users have reported these issues whilst content editing. I'm using Windows 7, IIS 7, .NET framework 4.5. I've checked the error log for anything and can see no obvious errors and the keepalive service is running - I get this information in the logs: ManagedPoolThread #14 12:47:24 INFO Scheduling.UrlAgent started. Url:http://testsite

jwPlayer causes rendering not to load in Sitecore's Page Editor

故事扮演 提交于 2020-01-04 03:52:08
问题 I'm currently working on a rendering in Sitecore 7.2 (MVC) that will show a jwPlayer given a link to a video (either in the Media Library or from an external source, like YouTube). When I add the rendering (with a valid data source) through Presentation Details in the Content Editor everything looks fine, and works perfectly. The trouble that I'm running into right now, though, is that when I try to do the same thing from the Page Editor (with the exact same rendering and data source),

Sitecore Refresh Index

瘦欲@ 提交于 2020-01-04 02:39:08
问题 I am working on Sitecore 7.2 and using Lucene search, I have created few templates and pages and search is working fine, now I want to exclude few templates from the index, I have a custom crawler and that does remove the templates from indexes but index is not refreshed, I am using following code to update index foreach (Cache cache in CacheManager.GetAllCaches()) { //WriteLog(string.Concat(" Clearing Cache, name = ", cache.Name)); cache.Clear(); } //WriteLog("Clearing caching finished");