Q:

SXA How is the create site wizard invoked

Following from a previous question about site / tennant creation in SXA I now want to understand how/where the insert options are defined which invoke the new Tenant / new Site wizard.
This screenshot shows the insert options on the content items:

Tenant Folder is defined as an insert option on the standard values of the Tennant Folder template. However, Tennant is not and I cannot figure out where this is set up?
This is the Tennant Folder template's standard values item with the insert options dialog displayed. Notice that only Tennant Folder is here.

Also the Insert Rules is blank so its not defined here either.

This is not stopping me working, I just want to understand how this is set up!

A:

It is managed through the Rules only, if the specific rules satisfied then the related Power shell script will get executed. Please find below screen for you reference.Path to the specific item is /sitecore/system/Modules/PowerShell/Script Library/SXA/SXA - Scaffolding/Content Editor/Insert Item. 

