Add Multisite Root for Shared Content Action

Description

The action adds a specific item as a multisite root folder for shared content in the "Select a Datasource" dialog

Example

1) Create a new rule "Add Multisite Shared Folder" under /sitecore/system/Settings/Rules/Component Datasource Location/Rules

2) Edit Rule

  • Set "where a specific rendering is being rendered" condition to Content Spot rendering
  • Set "add a specific item as a multisite root folder for shared content" action to your multisite shared content folder item (e.g. New Multisite Shared Content Folder)

 

3) Completed rule should look like on the screenshot below

4) Create a new page and/or open the page in the Page Editor (e.g. scoretest-content-page)

5) Add new Content Spot rendering to the page to display "Select the Associated Content" dialog

6) Click on Create New Content button, then Click on red Content Spots folder and finally click on OK button to create Content Spot datasource item in Multisite Shared Folder

7) Save the page and check just created content spot datasource item in sitecore tree under "New Multisite Shared Content Folder"