Derek Dysart
Derek Dysart

Derek Dysart

Periodic notes from an independent Sitecore Developer/Architect


Preview in Sitecore 8.1 Broken

While in the process of testing a site that is being upgraded to Sitecore v8.1 a serious issue was uncovered – none of the pages would preview. After looking into the error, some code that was dependant on the site context was not correctly resolving to the correct site. Instead, the site context was “website” as [...]

Derek DysartDerek Dysart

Sitecore Basics for .NET Developers

The following is a presentation I gave at the Milwaukee SItecore Developer meetup. The presentation was sort of a back to basics for developing on the Sitecore platform. There were a few technical issues, especially during the demo, but I think the video holds up. If you are interested, the slide deck I used for the presentation is on [...]

Derek DysartDerek Dysart

Get Rendered HTML From Sitecore Item

I thought I’d cross post this answer of mine from StackOverflow, as it is useful in a number of contexts. As I mentioned there, the code was cribbed from a similar situation where I needed a URL to feed to a PDF to HTML library, which behind the scenes fired up IE on the server and hit the site as an anonymous user. This needed to [...]

Derek DysartDerek Dysart

Disabling the Sitecore Analytics Cookie

A while back my colleague Nick pointed out this message on Twitter: To satisfy EU Cookie Laws I need a way to disable the @sitecore analytics cookies on a per user basis. Suggestions? — Kyle Heon (@kyleheon) March 7, 2013 We’d done this for a client of ours and I thought I’d help out. Basically for this, you need to tap the [...]

Derek DysartDerek Dysart

Styling ASP.NET Validation Controls

If you are using the intrinsic ASP.NET Validation controls on a Web Forms project, you’ll notice they always default to being red. While this is all fine and good since red for warnings makes sense. What if you (or your design team) want them to be a different color? If you look at the rendereded HTML, you’ll see it makes the text red by [...]

Derek DysartDerek Dysart