Steps To Apply Content Gating In Sitecore


Gated content is online materials such as white papers, articles, forms, and videos, that require that users fill out a form before they can access them or be authenticated to access them.


In this Blog will implement Content Gating in Sitecore Page so if the user unauthenticated it will show restricted layout


Step1: Create a base template "__Permissioned Content" Template
  •     Is Restricted – Checkbox
  •     Show Public Alternative Page – Checkbox
  •     Public Page – General Link







Step 2: Create a Restricted device





Step3: Make your page template you want to apply the content gatting on it inherits from __Permissioned Content Template





Step 4: Assign your template presentation the render you want to show in the restricted mode to the restricted device




Step 5: Create HttpModules to handle the restriction logic if the user is not Authenticated


Step 6: Add the HttpModulesconfig to your Web.config



And that’s it you can now use the restriction option on you gated pages.

Thanks



Comments

Popular posts from this blog

Sitecore SaaS Product

SIF Certificate Root expired

Sitecore 9 Update 2 Installation Guide Step by step