Clear Tenant Site Roots for Shared Content Action

Description

The action clears all tenant site shared content folders in the "Select a Datasource" dialog.

Example

1) Create a new rule "Add Site Shared Folder" under /sitecore/system/Settings/Rules/Component Datasource Location/Rules
This rule condition is always true therefore "My New Site Shared Content Folder" will be displayed as one of blue folders in the "Select a Datasource" dialog.

2) Create a new rule "Clear Site Shared Folders if Content Spot"

This rule will override the rule "Add Site Shared Folder" for Content Spots therefore "My New Site Shared Content Folder" won't be displayed in the "Select a Datasource" dialog.


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

5) Let's see how both rules "Add Site Shared Folder" and  "Clear Site Shared Folders if Content Spot" work together


5.1) Add new Document Header rendering to the page to display "Select the Associated Content" dialog

You will find that there are a few folders because of "Add Site Shared Folder" rule that adds "My New Site Shared Content Folder"

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

You will find that there is only one default blue folder. The second blue folder ("My New Site Shared Content Folder") is not added because of the "Clear Site Shared Folders if Content Spot" rule