How to exclude items with specific template ID?

How to exclude items with specific template ID?

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.

Is there a way to query the description field?

You don’t specify a value with this operator. For example, the following query filters will list all work items where some entries have been made into the Description field. The ability to query for work items that don’t have any tags attached to them is not a supported feature.

Can you change the ID in a description field?

The Description and other rich-text (data type=HTML) fields provide additional information that is needed to implement work and track changes. After a work item is created, you can modify all fields except for the ID. When you add and save a work item, the ID is assigned by the system and cannot be changed.

Is there a way to query work items without tags?

The ability to query for work items that don’t have any tags attached to them is not a supported feature. If you’d like to up vote the request to support this feature, you can do so on our Developer Community page, Be able to search for empty tags. To filter work items based on the category they belong to, use the In Group operator.

How to exclude items from a multilist in Sitecore?

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:

How is treelist similar to a multilist query?

Programmatically, Treelist stores its data identically to Multilist, so you won’t have to change any code that’s reading the value. Instead of writing a complicated query, you can use Treelist’s unique Datasource parameters to specify where the tree starts, which items are selectable, and even which items are visible.