Creating the site collection feature to apply the feature to new and existing sites
In this recipe, we will create a site collection scoped feature that will activate the site scoped branding feature to all sites in the site collection. In addition, we will add an event receiver to activate the site branding feature on all newly created sites.
How to do it...
Follow these steps to create a site collection feature and the event receivers:
- Right-click on the
- Click on Add Feature as shown in the following screenshot:
- Rename the new feature
- Open the new SiteCollectionBranding feature.
- Set Scope to Site.
- Set Title to ...