Navigation and service panel


Content

Posts in category "Best Practice"

ContentSearch instead of Sitecore queries - preserving the Content Tree order

By Marta Imos-Merska on 7. July 2016, No comments

Lately I've been working on a Sitecore 8.1 project, where we decided to use the Sitecore ContentSearch API instead of Sitecore queries to retrieve items. When starting with this approach, something you notice at the very beginning is that the order of the retrieved items needs some customization.

read on

Behavior-driven Development in .NET

By Dawid Dworak on 17. June 2016, No comments

Good communication between business and development is one of the biggest predictors of project success. It is proved by The Standish Group CHAOS report. It identifies user involvement (15.9%), executive management support (13.9%) and clearly stated requirements (13.0%) as the greatest factors of project success. Behavior-driven Development (BDD) is a software development process that significantly improves communication between business and IT and elevates TDD to the next level by filling a gap between user stories, their acceptance criteria and developed code.

read on
Categories  ASP.NET MVC  Best Practice Tags  BDD  TDD  .NET

User generated content in a security hardened environment

By Kevin Brechbühl on 16. July 2015, No comments

Martina Welander talked about different methods to store user generated content at the Sitecore Usergroup Conference (SUGCON) 2015. Some of them depend on the environment and on the security harderning you have applied. In our projects, we usually configure the environments to be as secure as possible. In this blog post I want to give you an example how you can store user generated content in a second web database.

read on

Get url for area controller action from a View Rendering

By Kevin Brechbühl on 4. February 2015, No comments

Sitecore doesn't support Mvc Areas out of the box, but of course we can use these anyway. This post shows how to resolve an url for a controller action from a Sitecore View Rendering within an area.

read on
Categories  ASP.NET MVC  Best Practice Tags  Mvc  Url  Areas

Custom date format in Sitecore MVC forms

By Kevin Brechbühl on 10. November 2014, No comments

Usually in .net solutions, date formats are based on the current culture. In Switzerland the situation is a bit complicated: We have three cultures (German, French and Italian) but almost every website also covers English, which is not an available culture. This means we don't have a valid combination of language and format infos. With this blog post I want to show a way to use custom date format in MVC forms.

read on

Dependency Injection sets you free from Conditional Statements

By Dawid Dworak on 10. September 2014, No comments

Conditional statements have been present to developers for nearly as long as the programming itself. Unfortunately in the world of OOP they are very often abused even by most exceptional developers and thus increase complexity of created applications. There are number of campaigns all over the world that raise awareness of effective use of software design principles and practices first of all by removing bad IFs and replacing them with alternative constructs. Dependency Injection make it possible to enhance the maintainability of code and let developers stay away from overwhelming amount of conditional statements.

read on

Differentiate ViewModels and DomainModels in view renderings using Glass Mapper

By Kevin Brechbühl on 29. August 2014, No comments

In an ASP.net MVC application, DomainModels and ViewModels are widely used. But often it's not clear what these are for and how we should separate them. This blog post shows my architectural point of view about how to differentiate ViewModels from DomainModels, how to use them in theory and how to integrate them into Sitecore view rendering with Glass Mapper.

read on

Add custom attributes to form tag with Sitecore MVC

By Kevin Brechbühl on 18. August 2014, No comments

A form tag often needs additional attributes like the css class. Because in Siteore MVC we can have multiple renderings and controllers on one page request, this can't be done exactly the same way as in pure ASP.NET MVC. In this small blog post I will explain you why and how you can do this with Sitecore MVC.

read on
Categories  ASP.NET MVC  Best Practice Tags  Attributes  Forms  Html

Enable Multi-level Site Property Inheritance

By Pascal Mathys on 8. August 2014, 2 Comments

Sitecore supports site property inheritance since ever. We work with so-called "base sites" which define most of the site configuration but don't serve as an actual site. Those sites inherit from the default "website" site provided by Sitecore.

With this configuration approach, we can simplify the configuration of actual sites because we can leave them as light-weight as possible and make setting changes easy as a breeze.

read on

Sichere Verbindung mit Sitecore und Microsoft Azure

By Reto Hugi on 13. May 2014, No comments

Mit dem Sitecore Azure Modul bietet Sitecore eine einfache Möglichkeit, mit wenigen Klicks Sitecore in die Microsoft Azure Cloud zu deployen. Dieser Beitrag erläutert, wie man für die Sitecore Site in Azure eine Verbindungsverschlüsselung (HTTPS) einrichtet.

read on