Published on:Apr 19, 2022
Views: 678
Number of votes: 11
Average rating:

Unpublish Content the Intuitive Way

Being someone with a technical background who is also "client-facing" means, quite often, that you are the person who has to explain a lot of the platform functionality to the "business" minded folk.

That's all fun and games as quite often people with no past experience with Optimizely directly, or even CMS/Commerce solutions as a whole, bring with them lots of weird and wonderful questions. Often with even weirder answers leading to interesting observations.

One that I've been asked more times than I can count is "How do I unpublish this content?".

Oh, it's super simple. See you're in preview mode now so scroll up so that hidden grey menu appears. Then click the "Tools" dropdown. Now click "Manage Expiration and Archiving". Then on that popup click the "now" next to "Expire date". Ok now click "Save". See super easy!

"That's.. weird 🤔"

Actually, come to think of it; yes, yes it is.

So I made a plugin for CMS 12 that makes it a bit more intuitive and puts the "Unpublish" functionality right where you (okay maybe not you, but the business person signing off our invoices) would expect it to be.

All you need to do is install it via the Optimizely NuGet feed and then add the below to your Startup.cs 

public void ConfigureServices(IServiceCollection services)
{
    // The usual stuff omitted

    // using dotcentric.Optimizely.Unpublish;
    services.AddUnpublish();
}

As usual, the code for this plugin can also be found on GitHub.

*Update*

Seems like this tiny change resonated with more people than I thought it would and I've had a few requests to see if we can get it added to the CMS core product. If you'd like to help make that happen please vote for it here https://feedback.optimizely.com/ideas/CMS-I-280

Apr 19, 2022

Johnny Mullaney
( By Johnny Mullaney, 4/19/2022 11:39:45 AM)

This is really neat. Thanks Jacob

Mari Jørgensen
( By Mari Jørgensen, 4/19/2022 6:18:45 PM)

Nice. Should be added to core product!

Giuliano Dore
( By Giuliano Dore, 4/20/2022 8:08:24 AM)

Really neat

PELLE NIKLASSON
( By PELLE NIKLASSON, 4/20/2022 9:55:14 AM)

Nice!

Surjit Bharath
( By Surjit Bharath, 4/27/2022 6:21:19 PM)

Love it!

KennyG
( By KennyG, 5/12/2022 6:23:19 PM)

Sounds like you've been talking to my users! :)

Please login to comment.