All posts for "Optimizely CMS"

Adding a Logout Link to the Quick Navigator in Optimizely CMS 12

on March 22, 2022 in Optimizely, Optimizely CMS, Episerver, Development with

Here's a quick code snippet for adding a logout link to the Quick Navigator menu in Optimizely CMS 12. This is done a bit differently in CMS 12, since the logout page is using Razor Pages instead of WebForms, and the new logout method requires an antiforgery token.

More ››

Styling the Textarea Property Editor in Optimizely CMS 12

on March 15, 2022 in Optimizely, Optimizely CMS, Episerver, Development with

What first started out as a "nice to have" feature, has now turned into a bigger experiment with EditorDescriptor. The original idea was pretty simple: "Can the font be changed in the Optimizely CMS UI for a textarea (string) property editor, maybe to something like a monospaced font where editors can provide additional styles or scripts?"

Here's a quick write-up about what I've learned when creating and modifying client side property editors.

More ››

Require or Prevent Publishing Content if it's in a Project in Optimizely CMS 12

on March 08, 2022 in Optimizely, Optimizely CMS, Episerver, Development with

I've recently been working on an Optimizely CMS 12 solution for a customer that creates and publishes a large amount of content during certain times of the year. They typically create all of the content changes and track them within an Project in the CMS, then publish all the changes at once, which is a great benefit of Optimizely's Project feature.

Recently, a question came up about this: "Is there a way we can enforce content to be part of a Project so it can be published?" This feature is more about change control than general functionality. The customer wants to make sure a change to content doesn't get published prior all other content being ready and published.

In the post, I'd like to share an example on how this could be accomplished; how you can require content to be part of a Project in order for it to be published, or on the opposite side, prevent content from being published if it is part of a Project.

More ››

Multi-site Optimizely Solutions: Dependency Injection in CMS 12

on February 10, 2022 in Optimizely, Optimizely CMS, Episerver, Multi-site, Development with

I have written multiple posts about how I architect and develop multi-site solutions in Episerver (now Optimizely). With the release of Optimizely CMS 12, which now runs on .NET 5, not much has changed with how I approach this, but the previous way I handled dependency injection is no longer supported.

In this post, I want to show how I'm now handling when multiple sites implement the same service (site-specific services).

More ››