Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 890 Bytes

File metadata and controls

26 lines (16 loc) · 890 Bytes
description
TaxonomySubtree Search Criterion

TaxonomySubtree Criterion

The TaxonomySubtree Search Criterion searches for content assigned to the specified taxonomy entry or any of its descendants.

Arguments

  • taxonomyEntryId - int representing the ID of the taxonomy entry that is the root of the subtree

Example

PHP

The following example searches for articles assigned to taxonomy entry with ID 42 or any of its child entries:

[[= include_file('code_samples/search/content/taxonomy_subtree_criterion.php') =]]

The criteria limit the results to content matching all of the conditions listed below:

  • content is assigned to taxonomy entry 42 or any of its descendants
  • content type is article