HttpHandler for PDFs resolve static item
In an implementation I had created an HttpHandler which was used to find PDF files. However there was an edge case where it was handling files in a virtual folder (used by Sitecore for Print Experience...
View ArticleSitecore Lucene ensure there are no duplicate search results
If a Sitecore Lucene search index is set to update incrementally, when a document is updated it is simply added to the index (ignoring if it was already there). By adding the unique ID field (aka item...
View ArticleSitecore Lucene inconsistencies with urllink field
In the default configuration file for Lucene in Sitecore there is a field indexed and stored by default called urllink. This file is found under App_Config/Include and is called:...
View ArticleSitecore icons not loading in content editor
If you notice that some icons are not loading in the content editor of Sitecore:The browser console may also have errors such as:Failed to load resource: the server responded with a status of 401...
View ArticleSitecore treelist dynamic/relative datasource path
I was setting up a re-usable blog branch in Sitecore that contained the following structure:Blog Home201612Blog postCategoriesCategory ACategory BThe blog post template had a treelist field which...
View ArticleSitecore search and the treelist field
When Lucene indexes a treelist field in Sitecore, the IDs of the selected items are stored in the search index, separated by the pipe ("|") character. An example would...
View ArticleGetting Sitecore links with the server URL
I was working on a sublayout that needed to use an internal RSS feed as a datasource. The code which parsed the RSS feed for items however did not like using relative URLs. The solution here was to...
View ArticleAccessing items from a Sitecore RSS feed in code
Creating RSS feeds of your Sitecore content is a great way to expose content to web site users, however it's also another way which you can access the data in code. Take news content for example,...
View ArticleSitecore preview and experience editor error
When using the preview mode or experience editor, the following error may occur:The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).This is...
View ArticleIncorrect date format in the content editor for date fields in Sitecore
An issue that comes up with non-US Sitecore implementations of Sitecore is the default format of the dates in the Sitecore content editor. By default they will appear as MM/dd/yyyy where we would...
View ArticleSitecore GetItemUrl method is leaving off the http or https
I had a Lucene computed index field which was indexing item URLs on a multi site environment. The URLs being returned by LinkManager.GetItemUrl were coming back in an unexpected format: ://myUrl...
View ArticleSitecore setting the rich text editor profile
The rich text editor is Sitecore is completely configurable, meaning that you can control down to each button what does and does not appear. Sitecore by default has several profiles setup for use:Rich...
View ArticleSitecore snippets are great for reusable HTML blocks
During a migration from an older system to Sitecore, I ran into an issue where there were large chunks of HTML being used to render content. These chunks needed to be reusable and inserted by content...
View ArticleIHttpHandler response redirect shows Object moved to here
While working on a HTTP Handler for PDF files, I found that redirecting to a new URL would display:Object moved to here. This was using the following code:context.Response.Redirect(pdfUrl,...
View Article301 redirects in a Sitecore item resolver
When migrating to Sitecore from an existing web site, one of the biggest concerns is a change in URLs - especially when it comes to search engine optimization. The common solution to this is a mix of a...
View ArticleSitecore error when rebuilding search indexes
In a scaled Sitecore environment, I was getting a combination of the following errors in conjunction with search (Lucene based) not working as expected:Exception:...
View ArticleDynamic placeholders not showing in the Sitecore page editor
When working with an implementation of dynamic placeholders in Sitecore 8, I was not able to see my dynamic placeholders in the experience editor (aka page editor), yet I could use them by manually...
View ArticleDynamic placeholders in sitecore
One problem with reusing Sitecore components that contain placeholders (such as a two column row) is that if you place more than one of the component on the page, the child elements will not render...
View ArticleSitecore LinkManager.GetItemUrl duplicating the host name
I noticed an interesting feature of the LinkManager.GetItemUrl method (used in a custom module) in Sitecore where it was rerunning URLs with the host name twice. For example...
View ArticleSitecore PXM InDesign Server Service is not loading
In the installation guide for PXM, after starting the InDesign Server Service and assigning it the port of 8081, it should then load up in the browser using a URL such as...
View Article