Sitecore Experience Accelerator (SXA)

Web development teams use Sitecore Experience Accelerator (SXA) to speed up the production of websites and to reuse components, layouts, and templates across a variety of sites.

SXA separates structure from design, so front-end designers, creative designers, content authors, and developers can work in parallel and you can deploy and maintain multiple sites quickly and cost effectively. Once a basic user experience plan is in place, everyone can get started on the platform. For example: the content author can start entering the content in the wireframe environment, while the front-end developer works on the theme, and the developer sets up the data templates.

Rendering variant

SXA includes a number of default renderings as well as rendering options. Rendering variants are adaptable versions of the default renderings that can be customized. Designers and front-end developers can also construct additional rendering options to enhance reusability. This allows authors to offer their content in a variety of ways.

Elements of SXA

  1. Tenants and Sites
  2. Toolbox
  3. Themes
  4. Grid and column layout 
  5. Page and Partial Designs
  6. Creative Exchange
  7. Asset Optimizer

Tenants and Sites

The SXA content architecture includes tenants and sites. SXA supports multitenancy, which means that you can run multiple sites on a single instance of Sitecore. Each tenant can include multiple related sites, for example, to support multiple brands for a single company or multiple languages or locations for a single brand. Its advantage is that it eliminates the need for any additional configuration, which was previously required to create multi-tenancy in standard Sitecore instance. 

Templates are preset schemas for content items that are used to base new items on instead of recreating the specific fields of a new item every time. We can create new data template when project requires fields that are not defined in existing data templates, or when new items require unique default field values or default settings.

Create a tenant and a tenant folder

With SXA's multitenant architecture, you can provide each tenant a dedicated share of the Sitecore instance including its data templates, configuration, user management, tenant individual functionality, and non-functional properties.

To create a tenant:
  1. In the Content Editor, right-click the item in the content tree, click Insert, Tenant.
    

     2. In the wizard, enter a name for the tenant, select the modules that you want to include, and click             Ok.

For more complex solutions, you can use groups of tenants. For example, a multinational selling consumer goods could have the following tenant folders and tenants:

Company (Tenant Folder)

  • Cosmetics (Tenant Folder)
    • Brand A (Tenant)
    • Brand B (Tenant)
  • Laundry detergents (Tenant Folder)
    • Brand A (Tenant)
    • Brand B (Tenant)
    • Brand C (Tenant)
  • Hair care (Tenant Folder)
    • Brand A (Tenant)
    • Brand B (Tenant)
    • Brand C (Tenant)
    • Brand D (Tenant)

To create a group of tenants:
  • Right-click the content item in the content tree, click Tenant Folder, enter a name and click OK.

Create a site and a site folder

The tenant is a top-level container for the sites underneath. Sites in the same tenant are related, for example, because they share the same set of templates or part of the media library. Sites are the items that represent the website and consist of pages, data, designs, and partial layouts.

To create a site:

  1. In the Content Editor, right-click the tenant to which you want to add the sit
  2. In the wizard, on the General tab, enter the name for the site.
    1. Important
    2. SXA site names cannot contain blank spaces.
  3. On the Modules tab, select the features and click OK.
  4. On the Theme tab, either create a new theme by selecting Create new theme or select one or more existing theme(s) and click
  5. On the Grid tab, select the grid and click OK.
For governance reasons, you can decide to use groups of sites. For example, for an internalization model where you create different sites for different countries:
  • Europe (site folder)
    • Poland (site)
    • Denmark (site)
    • The Netherlands (site)
    • Ukraine (site)
  • Asia (site folder)
  • Africa (site folder)
To create a group of sites:
  • Right-click the tenant in the content tree, click Site Folder, enter a name and click OK.

Note

SXA defines sites as Sitecore items. This enables to mitigate an issue with website restart after each change in Sitecore.config file. You can create new sites with SXA without a need to restart your Sitecore instance. If for some reason you decide to define sites in the config file instead of using items, makes sure to add IsSxaSite="true".

<site name="C" IsSxaSite="true" enableTracking="true" virtualFolder="/mySXA" physicalFolder="/" rootPath="/sitecore/content/A/B/C" startItem="/Home" database="web" domain="extranet" allowDebug="true" cacheHtml="true" htmlCacheSize="50MB" registryCacheSize="0" viewStateCacheSize="0" xslCacheSize="25MB" filteredItemsCacheSize="10MB" enablePreview="true" enableWebEdit="true" enableDebugger="true" disableClientData="false" cacheRenderingParameters="true" renderingParametersCacheSize="10MB" />



Comments

Popular posts from this blog

Email Experience Manager (EXM)

Federated Experience Manager (FXM)