Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 911 Bytes

File metadata and controls

27 lines (17 loc) · 911 Bytes
description TaxonomySubtree Search Criterion
month_change true

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 that match all of the conditions listed below:

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