If you are passionate about testing automation in Sitecore, sooner or later you will want to mock Context.PageMode.IsExperienceEditorEditing (or Context.PageMode.IsPageEditorEditing in pre-Sitecore 8) properties. This post will give you step-by-step instructions on how to do that using Sitecore.FakeDb.
Posts Tagged ‘BrainJocks’
A Recipe for Solid SSL in Sitecore
When building a modern website, a developer needs to pay attention to many things. One of those is security; it always should be placed at the top of the priority list. And the best way to protect site bytes and user input while they’re traveling between a browser and web servers is Transport Layer Security (TLS a.k.a. SSL). If you want to learn how TLS can be implemented in Sitecore, you don’t need to search further. Let’s start…
Unsuspected Error Handling: Solving Sitecore Puzzles
Being a Sitecore developer sometimes means that you are faced with errors that at first glance are both vague and puzzling. Most of the errors can be solved by using previous experience, common sense, a simple Google search for an article or quick chat with a colleague. But other times, there are errors that require […]
Adventures in Dependency Injection with Sitecore 8.1
Dependency Injection, specifically MVC controller injection, is stupid simple to set up in a vanilla ASP.NET MVC site. For you guys out there that are only working in Sitecore part of the time (or for the first time), however, it may seem like an impossible feature to set up. I mean, you don’t even have […]
Media Indexing Approaches
Sitecore has powerful search capabilities for those who are interested in runtime performance. Lucene is embedded by default with a standard set of indexes for all databases that is automatically refreshed upon change of content. LINQ-based queries allow you to easily retrieve documents and filter them. So, to make a website faster, it’s wise not […]
SCORE 2.0 Component Assembly 101, Part 1: The Basic Component
If you’re a seasoned Sitecore developer, feel free to skip this post. If your company just bought SCORE and you’re looking for information on how to build things “the SCORE way,” you found it. I want to get into some theory, some nomenclature and the mindset of a SCORE developer. What it means to […]
An unhandled Microsoft .Net Framework exception occurred in w3wp.exe
“Unhandled exception” is not something that makes people happy. If this exception suddenly appears and crashes your beautiful Sitecore site, first you probably feel surprise, then fear and finally panic. If you are reading this article, I assume you are done with the first part and now want to know how to fix it.
Why We Switched to Sass
Editor’s Note: In 2020, Perficient acquired Brainjocks, a leading digital consultancy with a strong Sitecore platform focus. This blog post predates the acquisition. BrainJocks has released SCORE v2.0, and our development team is loving it! This release brought many changes, but one of the biggest was to the front-end code. We have switched our CSS […]
Using Gulp and Unicorn within a SCORE scaffolded project
I would like to share some findings from my investigation into the replacement of TDS with alternative open source tools such as Gulp and Unicorn. Gulp is a toolkit that will help you automate painful or time-consuming tasks in your development workflow, including build operations. Gulp is a pure JavaScript module for NodeJS. JavaScript is […]
Improve Sitecore Content Editor Performance
While Sitecore continues to extend Content Editor functionality to the Experience Editor, Content Editor remains the interface of choice for developers and power users. Its performance can significantly impact the productivity of any development team. With the fairly simple adjustments I outline here, you can optimize Sitecore Content Editor performance and usability. Tweaking the Tree […]
Content-First Strategy Using SCORE
Being a creative while working at a highly skilled dev firm has provided me a lot of insight on how workflows are changing for the better. The days of building sites from high fidelity compositions are fading fast. Development teams no longer have to wait for “signed off” wireframes and designs before getting started. Content, after all, is […]
Sass Maps and Iterators
One of the top rules for programmers is to stay DRY – don’t repeat yourself. CSS preprocessors are great for helping UI developers accomplish this goal. However, there are still some instances where it seems as if you can’t help but repeat yourself. Here’s a common example of background positions using a sprite: Typing “background-position” […]