Quantcast
Channel: Ryan Bailey Development
Browsing all 287 articles
Browse latest View live

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 Article


Sitecore 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 Article


Sitecore 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 Article

Image may be NSFW.
Clik here to view.

Sitecore 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 Article

Sitecore 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 Article


Sitecore 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 Article

Getting 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 Article

Accessing 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 Article


Sitecore 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 Article


Image may be NSFW.
Clik here to view.

Incorrect 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 Article

Sitecore 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 Article

Image may be NSFW.
Clik here to view.

Sitecore 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 Article

Image may be NSFW.
Clik here to view.

Sitecore 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 Article


IHttpHandler 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 Article

301 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 Article


Sitecore 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 Article

Dynamic 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 Article


Dynamic 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 Article

Sitecore 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 Article

Image may be NSFW.
Clik here to view.

Sitecore 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
Browsing all 287 articles
Browse latest View live