sitecore7

Sitecore saveUI processor redirecting to item page after moving it

感情迁移 提交于 2019-12-11 03:23:36
问题 I have implemented a Sitecore saveUI processor for moving news items to a specific location inside a year/month hierarchical structure. It does the job well, except for the fact that when used inside the Page Editor (navigating to an item's page and then trying to save, and implicitly move, the item) I am redirected to our 404 page, since Sitecore expects the original item's url to still be valid after the operation. Is there any way to tell Sitecore that the item has been moved? I'm thinking

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>

Force a language prefix in the url with Sitecore

。_饼干妹妹 提交于 2019-12-10 16:07:20
问题 Is there a setting to force the language in the URL? Like, if I browse to http://www.site.com, I should be redirected to http://www.site.com/en, as it is now I can see the start page without the language prefix. The LinkManager is configured to always put in the prefix so all the links look fine at least. 回答1: Another way to use is our SEO Friendly URL Module. This module implements a custom LinkProvider that provides SEO Friendly URL's and forces items to be accessed through their friendly

Sitecore 7 pdf indexing

时光总嘲笑我的痴心妄想 提交于 2019-12-10 13:08:43
问题 I try to index PDF files with Sitecore 7. I installed IFilter , but I received on crawlers log next error : ManagedPoolThread #17 09:24:20 WARN LuceneIndexOperations : Update : Could not build document data 4433434-3443-3223-91c4-233232. Skipping. Exception: System.Runtime.InteropServices.COMException Message: Error HRESULT E_FAIL has been returned from a call to a COM component. Source: mscorlib at System.Runtime.InteropServices.ComTypes.IPersistFile.Load(String pszFileName, Int32 dwMode) at

Sitecore, custom MVC controllers and routes

此生再无相见时 提交于 2019-12-10 09:46:07
问题 I have a website defined in Sitecore's site definitions. The path to it is /localhost/mysite/home . And it works. I need to create a custom controller to submit forms with an API bypassing Sitecore. So I have FormsController (inheriting from MVC controller) with an action named "Test" taking no parameters. I defined the route in the initialize pipeline like this: public class Initialize { public void Process(PipelineArgs args) { MapRoutes(); GlassMapperSc.Start(); } private void MapRoutes() {

Sitecore7 LinqHelper.CreateQuery Buggy?

守給你的承諾、 提交于 2019-12-08 12:11:22
问题 This is more of a clarification type question rather than actual problem regarding LinqHelper.CreateQuery method. So, This method has 3 overloads. The 2 in question here, are: 1. LinqHelper.CreateQuery<SearchResultItem>(searchContext, searchStringModel) 2. LinqHelper.CreateQuery<SearchResultItem>(searchContext, searchStringModel, startLocationItem) [I haven't used any additional context here so used the default null] Now, In order to search for items with in a specific location of the content

Components not indexed in sitecore lucene search indexes

狂风中的少年 提交于 2019-12-08 02:47:51
问题 I have configured lucene search index in configuration & tested index with lukeall tool it searches for all fields of defined templates but content on pages are using another external component, which is not searched but data in fields of page are searchable. is there any way to search it something like html search so that all data on page could be indexed. Thanks guys. 回答1: It's a common requirement. This screencast outlines an approach where the crawler loops through each of the page's

How can I get Sitecore Field Renderer to use a css class for an image

[亡魂溺海] 提交于 2019-12-06 15:33:42
Using Sitecore (7) & MVC, I'd like to know how to add a css class attribute for an image to the field renderer in sitecore. Without Sitecore it looks like this: <div class="background-container"> <img src="/images/background-1.jpg" class="background"> </div> With Sitecore: <div class="background-container"> @Html.Sitecore().Field(Constants.Fields.HomeBackgroundImage) </div> There doesn't seem to be a way to add the class background to the image itself in Sitecore. Is there another way to do this? Thanks. Benutzer This was what I was looking for: @Html.Sitecore().Field("MyFieldName", myItem,

Sitecore ContentSearch duplicate indexes when saving items

萝らか妹 提交于 2019-12-06 07:27:41
I have implemented an index for our application which is supposed to index our items from an item bucket on the master database, but it seems that each time an item is updated and saved (not published, since the index works on master) an additional index is created for that item, which means another search result for the item. After regenerating the indexes there seems to be no issue, each item in the bucket is indexed exactly once. I'm adding the index config for the search functionality below: <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> <sitecore> <customSearchNewsItem>

Hide Quick info in Sitecore through code

允我心安 提交于 2019-12-06 05:56:26
I want to hide quick info section through code instead of unchecking the check box in Application Options dialog box. Can someone help in this? Jason Horne The following code does exactly what your looking for. Add this code below: namespace Custom.Framework.SC.Extensions.Pipelines { using Sitecore.Pipelines.LoggedIn; using SC = Sitecore; /// <summary>The default quick info.</summary> public class DefaultQuickInfo : SC.Pipelines.LoggedIn.LoggedInProcessor { /// <summary>The process.</summary> /// <param name="args">The args.</param> public override void Process(LoggedInArgs args) { const