Install Horizon 10.2 with Sitecore XM

There are plenty of documents and blogs available on installing Horizon with Sitecore XP Experience Platform but this blog is related with install Sitecore Horizon with Sitecore XM Experience Manager.

install-horizon-1

Horizon is the next-generation editor in the Sitecore Experience Platform. Horizon comprises two editing tools where you can create and edit content.

Before installing Horizon, you need to install the below prerequisites for Sitecore 10.2:

  1. Install Sitecore Experience Manager 10.2
  2. Make sure your Sitecore CM site is working correctly with the HTTPS protocol.
  3. Ensure Sitecore Identity is installed
  4. Install WebSocket Protocol installed in IIS
    • If you are on a local developer machine: Go to the Turn Windows Feature on or off from the Programs and Features option in Control Panel.
      install-horizon-2
    • If you are on Virtual Machine: Go to Server Manager, and select the Add roles and feature option in the right panel. install-horizon-3
  5. Sitecore Installation Framework 2.3.0
  6. ASP.NET Core/.NET Core: Runtime & Hosting Bundle 3.1.15 x64

After you install the all prerequisite, restart your machine.

Installation:

  1. Go to the Sitecore Download website and search for Sitecore Horizon 10.2.0, click on it and download Sitecore Horizon for On Premises deployment under Download options
    install-horizon-4 or you can directly download it from here.
  2. Extract the package Sitecore Horizon 10.2.0 rev. 05608 and open InstallHorizon.ps1 file:
    install-horizon-5
  3. Update only the following highlighted field value in InstallHorizon.ps1 as per your installed Sitecore instance.
    install-horizon-6 Note: $solrCorePrefix: The prefix of the Sitecore Solr core index for Horizon. Make sure it is aligned with the prefix for the sitecore_master_index from your current deployment.
  4. After, modifying the parameter values in InstallHorizon.ps1 file, open a PowerShell window in administrator mode and execute the InstallHorizon.ps1 script.
    Note: If you face the error regarding the execution policy then set the execution policy or bypass it on your machine.
    install-horizon-7
  5. Once installation is complete, go to the Sitecore launchpad and check the Horizon icon.
    install-horizon-8
  6. Click on the Horizon icon, it will redirect you to the Horizon page:
    install-horizon-9

Update the style sheet

Before you can use the alignment and indentation features in the rich text editor in Horizon, you must define some styles in your style sheet. To enable alignment and indentation in the rich text editor, Add the following lines to your default style sheet.

Note: Here default style sheet is your website’s default style sheet instead of Horizon, so don’t get confused.

Prepare the Solr search engine

For the search feature to work in Horizon, after you deploy Horizon, you must populate the Solr managed schema and build the Horizon index.

To prepare the Solr search engine for Horizon:

  1. Log into Sitecore
  2. On the Sitecore Launchpad, click Control Panel
  3. In the Indexing section, click Populate Solr Managed Schema.
  4. In the Schema Populate dialog box, ensure that the sitecore_horizon_index and the sitecore_master_index checkboxes are selected.
  5. Click Populate
  6. When the Schema Populate dialog box indicates that the indexes have been populated successfully, click Close.
  7. On the Control Panel, in the Indexing section, click Indexing Manager.
  8. In the Indexing Manager dialog box, select the sitecore_horizon_index and the sitecore_master_index checkboxes, and then click Rebuild.
  9. When the search indexes have been rebuilt, click Close.

In my next blog, I will discuss some Horizon pre- and post-installation issues/errors and their fixes.

Happy Sitecoreing ðŸ˜Š

Comments

Popular posts from this blog

Sitecore Installation Error: Failed to Start Service 'Sitecore Marketing Automation Engine'

Import CSV Data in Sitecore Using PowerShell: Part-3

Sitecore Technology MVP Journey 2022