This is a sample repository to demonstrate how to handle media and layout not found in Sitecore Experience Accelerator.
Clone this repository. The rest of the setup assumes you cloned to
C:\Projects\Sitecore\SxaNotFound
.
- Install an instance of Sitecore 9.0 Update-2.
- The default install path is
C:\inetpub\wwwroot\sxanotfound.localhost
. - The default URL is
sxanotfound.localhost
.
- The default install path is
- Install Sitecore PowerShell Extensions 4.7.2 or above.
- Install Sitecore Experience Accelerator 1.7 Update-1.
- If you used a clone path, install directory, or URL different than the
defaults above, open
SxaNotFound.sln and modify
the following files in the
.config
folder:CoreySmith.Project.Common.Dev.config
- Change
sourceFolder
to your repository directory.
- Change
PublishSettings.targets
- Change
publishUrl
to the path of your Sitecore instance.
- Change
- Build the solution in Visual Studio.
- This will publish all code to your instance thanks to Helix Publishing Pipeline.
- Note: you may need to reload the solution and build a second time if you get errors about missing assemblies/references when you load Sitecore.
- Perform a Unicorn sync at
/unicorn.aspx?verb=sync
. - Run the Unicorn sync again.
- Login to Sitecore and do a full site publish.
- Navigate to your site at http://hostname.localhost.