Clearer requirements through Sitecore prototyping

Sitecore 122Recently, my colleagues and I were about to embark on a mission to gather requirements for an upcoming release. We had already worked with this particular client and therefore knew that they would have a solid understanding of their existing solution, if not the full capabilities of the Sitecore platform. For the new requirements, we decided to put together some prototypes. I’m so glad we did!

Continue reading “Clearer requirements through Sitecore prototyping”

Using subfolders for Sitecore config files

Sitecore 122Recently, I’ve been changing the organization method I’m using when architecting builds for my clients. Sitecore supports automatically patching in include files from subfolders of App_Config\Include, which allows for architecting project-specific overrides and environment-specific settings in a much cleaner manner.

Kamruz Jaman just wrote a great post about this on Friday. The upshot? Stop putting your files in the primary Include folder and make sure you use subfolders!

Another few tips to add to the post:

  1. Use a naming convention for environment files. You want to make sure you have a way for deployment scripts to determine whether a file belongs to your primary or secondary content delivery server, or if it applies to all environments. An example would be PRD.CD1.CustomSettings.config.example for a file you want to deploy to your primary production environment.
  2. Use .example for files intended for other environments. If you are trying to manage all of your environment-specific files in a single solution, you will need .example extensions on the files. Otherwise, these files will all activate in your local development.

Upcoming VS Online licensing changes greatly helping Microsoft’s position

TFSLast week, Brian Harry announced on his blog some upcoming changes to the Visual Studio Online licensing.  Word is that the changes should be coming in the next few months (an August-like timeframe is mentioned).  The announced changes are going to be a great help in positioning Microsoft against some of their competition in the Application Lifecycle Management (ALM) sphere. How they went about deciding what change to make is just as interesting.

Continue reading “Upcoming VS Online licensing changes greatly helping Microsoft’s position”

WCF and CORS: “No ‘Access-Control-Allow-Origin’ header is present on the requested resource”

Service-oriented ArchitectureIf you are building an Angular app (or other form of HTML5 web application) you are probably running controllers on JSON data to bind to repeaters and present to your users. In many examples, this is usually set up with static data, or a local file, but inevitably you will want to architect something a bit more scalable. One way is to introduce a WCF service to act as your gateway to a data store, but if you are running this service outside of the domain of your web application, you will see the following error in your Javascript console:

No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://www.yourdomain.com’ is therefore not allowed access.

Continue reading “WCF and CORS: “No ‘Access-Control-Allow-Origin’ header is present on the requested resource””