Saturday, 1 December 2018

SXA Site Creation: Tutorial 4

In the previous post we worked on Tenant (about What is Tenant, How to use, and When to use) and now today will start creating Site under newly created Tenant
In SXA, Site is a Sitecore Item which represents to a website and that contains (Pages, Data, Partial Design, Page Design, and Partial Layout).
Under the newly created Tenant let's insert Site Item named as myfirstsite

sxa-site



and now follow the steps on each tab.
In the First tab (GENERAL tab) on the popup give the Site Name, Host Name and move to the second tab




Here in FEATURES tab will by default all SXA existing features will be selected, so will skip this tab (can also add or remove feature as per need) and jump to next




In the third tab, THEME will create the new theme by giving theme name and selecting checkbox



and at last on GRID tab will remain Grid as bootstrap


Now click OK and will see some automated script is getting fired and Site will be created as

sxa-site


It's demo time:

Open the Home item under the site as Experience editor, wait for some moment.



Now will see there is already three container (Header/Main/Footer) added, where can add available SXA renderings as needed.
on the right side can also see Toolbar Window as Accordion where all the available renderings listed which you can apply to the page container as required.
Since this is the first time so check all the available renderings.


In the next part will continue with adding rendering to the page...

Tuesday, 27 November 2018

SXA Tenant Creation: Tutorial 3

In the previous post we installed Sitecore with SXA on local, and now it's time to start working on it.
Since we are completely new with SXA, so will start with creating the Simple website using existing features and simple markup.
Here we are not going to write code or create new rendering or SXA component, we only reuse existing SXA features as much as possible.
Follow the below steps and in case of any issue share your problem in below comment section.
Let's start,

Step 1: We will first create tenant under Content,
But before creating we should know why Tenant?
Simply we can say here Tenant is a brand name for a Big Multi brand Company (ex: Tata, Loreal, Amazon, etc).
Suppose we are an International Cosmetic Company (ICC) with multiple Brands, so how will create a structure using SXA features

Sitecore
Content Tree
ICC (Tenant Folder)
Beauty (Tenant Folder)
A-Brand (Tenant)
B-Brand (Tenant)

Watches (Tenant Folder)
A-Brand (Tenant)
B-Brand (Tenant)

Sunglasses (Tenant Folder)
A-Brand (Tenant)
B-Brand (Tenant)

So here basically will start with Tenant Creation for a simple single website
right click on the Content Tree -> Insert -> Tenant -> Give the Name of Website/Brand (let's say demosite1)

by default all features will be selected at the time of tenant creation, as per need can add or remove from checkbox

tenant-feature


Note: Remember - try to avoid the space in name of Tenant Folder/Tenant and Sites.

Hope Tenant will be created, to cross-check all done well. We can select newly created Tenant Item and will see configuration section will certain settings.



Go to each settings by the following path, you will see the structure will be created.

And it's not less than magic, because behind creating the New Tenant many PowerShell scripts run as part of automation and that helps to improve delivery.


  1. In the next part will see how to work with Site creation under newly created Tenant...