I'm on Sitecore 8.1 and I have an item that has a multilist that allows a user to select all items under a site, but I want to exclude a couple items and their descendants. The basic tree structure looks like this:
Site Home
- Example Page 1
- Example Page 2
- Blog
-- Tags
--- Tag 1
--- Tag 2
--- Tag 3
-- Categories
--- Category 1
--- Category 2
--- Category 3
-- Blog Year
--- Blog Month
---- Blog Post 1
---- Blog Post 2
---- Blog Post 3
- Data
-- Data Folder 1
--- Data Folder 1 Item 1
--- Data Folder 1 Item 2
--- Data Folder 1 Item 3
-- Data Folder 2
--- Data Folder 2 Item 1
--- Data Folder 2 Item 2
--- Data Folder 2 Item 3
-- Site Settings
- Example Page 3
- Example Page 4
- Example Page 5
I currently use query:./ancestor-or-self::[@@templateid='{template ID of Site Home}']// to get all items under the site, but I can't figure out how to exclude the Blog item and all its descendants and the Data item and all its descendants.
What do I need to add to the end of that query to exclude the Blog item and its descendants and the Data item and its descendants?