Installing SmartEdit

This document guides you through setting up SAP Commerce Cloud SmartEdit.

The system you install includes sample data for the demonstration storefronts. The document is an appendix to Installing SAP Commerce Cloud Using Installer Recipes, which describes the process of installing the SAP Commerce Cloud, and provides additional instructions for installing the SmartEdit.

Basic Installation

To perform a basic installation of SmartEdit, follow the steps described in Installing SAP Commerce Cloud Using Installer Recipes. You can install SmartEdit using the installation recipes listed on the Installer Recipes.

Extensions to Include When Performing a Manual Installation

If you’re installing SAP Commerce Cloud with SmartEdit but aren’t using an installation recipe, that is, you’re performing a manual installation, you must include the following extensions in the localextensions.xml file:

  • cmsbackoffice
  • cmssmartedit
  • cmssmarteditwebservices
  • cmswebservices
  • permissionswebservices
  • previewwebservices
  • smartedit
  • smarteditaddon
  • smarteditwebservices
  • ysmarteditmodule (if you want to extend the SAP Commerce Cloud framework or CMS functionality)

When manually installing SmartEdit, you must install the smarteditaddon AddOn as follows:

ant addoninstall -Daddonnames=smarteditaddon -DaddonStorefront.yacceleratorstorefront=<your_custom_storefront>

To ensure sure that the access rights are correctly set up so that you can log in to SmartEdit, you must do one of the following:

  • Run hybris update in SAP Commerce Cloud Administration Console (Administration Console) by selecting all extensions related to SmartEdit.

  • Perform the following operations from a command-line interface:

    1. Go to the $HYBRIS_BIN_DIR/platform directory.
    2. Execute the ant updatesystem command.

Installing SmartEdit with Multi-Country Site Support with Sample Data

The cms2 and cmsbackoffice extensions include the core functionality of the Multi-Country Site Support feature. The enablement of the feature is data driven, therefore SAP provides the multicountrysampledataaddon, which includes Multi-Country Site Support sample data for the SAP Accelerator Electronics store. To install SmartEdit with Multi-Country Site Support, you must install SAP Commerce Cloud manually, for information, see Installing SAP Commerce Cloud Manually. You must also include the following extensions in the localextensions.xml file:

  • cmsbackoffice
  • multicountrysampledataaddon

You must install the multicountrysampledataaddon AddOn using ant addoninstall.

If you have an existing multi-country setup and you want to edit it using SmartEdit, see Setting Up Multi-Country Site Support.

Downloading npm-Related Third-Party JavaScript Libraries

SAP Commerce Cloud doesn't include npm-related third-party JavaScript libraries. This impacts any extensions and AddOns that use these libraries, which include the SmartEdit extensions. To enable full build and test capabilities on these extensions and AddOns, you must download the required libraries through npm.

To download the required libraries for SmartEdit, do the following:

  1. Ensure that ant is running.

  2. Go to the $HYBRIS_BIN_DIR/platform directory.

  3. Execute the command ant npminstall:

    ant npminstall

    You can now execute any ant target on your extensions or AddOns.

Recommended Settings for Production Environments

If you have SmartEdit deployed in a production environment, SAP recommends the following:

  • Configure your server so that it prevents displaying information through the X-Powered-By header about the technology that supports the web server.
  • Configure your web server to prevent information leakage from the SERVER header of its HTTP response.
  • Ensure that the OPTIONS method of the HTTP protocol is disabled in the web server configuration.