A blog about Sitecore tech, built on Sitecore, by Sitecore developers

JSS: Custom Content Resolver

08 Jul 2019, by Bonny Nilsson | layout Service, JSS, Content Resolvers

Working with Sitecore JSS is a bit different than the traditional MVC approach. If you want to work the data your view uses before it gets to your view, in MVC you'd use a controller. In JSS, you use a content resolver.

JSS: Alias Resolver

27 May 2019, by Bonny Nilsson | Sitecore 9, JSS 11, Aliases, LayoutService

Aliases are not supported in JSS out-of-the-box. I'll show you how to set up a basic alias-resolver on your own.

JSS: Layout service 401 and unauthorized access denied bug

02 Apr 2019, by Bonny Nilsson | Sitecore 9.1, JSS, Layout service, Unauthorized, 401

I wanted to implement access denied handling in my JSS app, but API-calls through Layout Service for restricted-access routes are redirected to /sitecore/service/notfound.aspx... Let's see what we can do about this.

JSS: Resolve site

13 Feb 2019, by Bonny Nilsson | JSS, Sites, RouteHandler

The bootstrapped JSS app is focused on supporting a single site per app (and localizations of this site). However, let's say we have several markets that want to use our JSS app, but they don't want the exact same routes, content and presentation. Let's see if we can achieve similar site handling as in traditional Sitecore.

Sitecore technology MVP

01 Feb 2019, by Bonny Nilsson | Sitecore, MVP, 2019

Most Valuable Professional 2019!

JSS (React) Dynamic Layouts - Part 4: Disconnected mode and auto-generated layoutMap

22 Jan 2019, by Bonny Nilsson | JSS, Sitecore 9.1, Layouts, Disconnected mode, Code-first

Final part (I promise...)! We tie up all loose ends by adding layout data to the disconnected layout service mock, and by making the whole workflow as automatic as the OOB workflow for renderings.

JSS (React) Dynamic Layouts - Part 3: Layout items on import, and extending Layout Service

18 Jan 2019, by Bonny Nilsson | Sitecore 9.1, JSS, Deployment, Layouts, Pipeline, Import, Code-first

All preparations done, let's make sure layout items are created when we deploy our JSS app. And while we're tinkering around in Sitecore, let's also see to it that the Layout Service gives us the name of the layout. That way we don't need to keep a layout map with IDs in JSS.

JSS (React) Dynamic Layouts - Part 2: Include layouts in the import manifest

16 Jan 2019, by Bonny Nilsson | Sitecore 9.1, JSS, Layouts, Deploy, Import, Pipelines, Code-first

We've enabled dynamic layouts, and we've seen how to patch JSS pipelines. Now we want to include layouts in the app deployment in order to enable code-first workflow.

JSS (React) Dynamic Layouts - Part 1.5: Patching a pipeline

15 Jan 2019, by Bonny Nilsson | JSS, Sitecore 9.1, Pipelines, Config patching, Code-first

When doing anything Sitecore, patching pipelines is pretty much course 101. JSS utilizes pipelines in a similiar manner as standard Sitecore, but since it's implemented in an entirely different language and stack it looks slightly different.

JSS (React) Dynamic Layouts - Part 1: LayoutFactory

14 Jan 2019, by Bonny Nilsson | JSS, Sitecore 9.1, Layout, Layout service, Code-first

By default, the bootstrapped JSS React app created by the 'jss create' command uses a single hardcoded layout. Let us see if we can change that.

JSS 11.0: First impressions

01 Jan 2019, by Bonny Nilsson | Sitecore 9, JSS, React, Headless

From alpha to beta to technical review and finally: Release. Sitecore feels JSS is production ready, so we thought we'd start poking it with the old stick to see what's what.

Personalizing on profile patterns: Interaction and Current visit vs. Contact

07 Dec 2018, by Bonny Nilsson | Sitecore, Analytics, Personalization, Patterns, Profiles

The story of how Bob the Bro got to be the coolest looking cat at the gym.

Sitecore 9.1: Installation

04 Dec 2018, by Bonny Nilsson | Sitecore 9.1, Installation, SIF, Powershell

Sitecore has kicked their current version up to 9.1 and it offers a lot of new features, not the least of which is an easier installation process! In this post, I'll walk you through installing a local Standalone instance for development.

IIS certificate installation

16 Nov 2018, by Bonny Nilsson | SSL, HTTPS, Sitecore 9, IIS, Certificate

Since Sitecore 9 was introduced, even the unwilling are more or less forced to work with SSL, and if you havn't done it before it can be a maze of configurations, certificates etc. I stumbled upon some hardship recently while installing a .cert file, and thought I'd share my experience.

Sitecore 9 quick-tip: Updating your license

10 Oct 2018, by Bonny Nilsson | Sitecore 9, License, Quick-tip, xConnect, Services

Updating your license in previous Sitecore versions has been a simple copy-paste action in one location. No longer!

Helix Frontend

20 Sep 2018, by Bonny Nilsson | Sitecore, Frontend, Helix, Gulp

We Helixify our file structure, our content structure, our code structure, our code architecture, our unicorn configurations. Basically we do Helix everywhere except in our frontend. So why not apply it there aswell?

Sitecore Forms: Validation messages

15 Aug 2018, by Bonny Nilsson | Sitecore, Forms, Validation, Validation Messages

In my last post I discussed some alterations to Sitecore form handling, specifically how to present forms on pages. In this post we will take a look at validation in Sitecore Forms and also at some quirks that you need to be aware of.

Sitecore Forms: Layouts and assets

15 Aug 2018, by Bonny Nilsson | Sitecore, Forms, Layout, Assets

A simplified approach to handling Sitecore Forms scripts and styles rendering, without creating custom forms-layouts.

Sitecore 9 quick-tip: Email over SSL

23 Apr 2018, by Bonny Nilsson | Sitecore, Sitecore 9, SSL, TSL, Email

By default, Sitecore does not use SSL for emails, so it is something that you need to adjust yourself. This entry is just a quickie, about how to configure Sitecore 9 to use SSL (TSL) for sending email.

Recursive data source rewrite for Branch Templates

16 Apr 2018, by Bonny Nilsson | Sitecore, Sitecore 9, Branches, Branch Templates, Datasources

This is the first official blog post of the Decerno Sitecore tech blog! Long may it live. Let's jump right into the good stuff. In this case, the good stuff is Sitecore branch templates, and how to resolve local rendering datasources when creating instances of said branch templates.

SItecore Technology MVP 2019