Skip to main content
Skip table of contents

Channel Filter: Show Virtual Type in Channel

Show only Virtual Type "Press Kit" with Layer "Publishing Information" in a Channel.

CODE
{
	"kind": "AndFilter",
	"filters": [
		{
			"kind": "TermFilter",
			"field": "contentSchemaId",
			"term": "PressKit"
		},
		{
			"kind": "TermFilter",
			"field": "layerSchemaIds",
			"term": "PublishingInformation"
		}
	]
}
  • Will filter for all Content Items which have the Content Schema "PressKit".

  • Will filter for all Content Items which have the Layer "Publishing Information" assigned. 

  • The special field: contentSchemaIds has the Content Type (Virtual Type or File Type) names stored as a value for easy access. 

  • The special field: layerSchemaIds has the Layer names stored as a value for easy access. 

You can use contentTypeId for File Types too and e.g. show only Images in a Channel

CODE
{
	"kind": "OrFilter",
	"filters": [
		{
			"kind": "TermFilter",
			"field": "contentSchemaId",
			"term": "ImageMetadata"
		}
	]
}


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.