CategoryTreeAncestors

A column to fetch the ancestors from a category tree column.

  1. Overview
  2. category_tree_column_name

Overview

See the CategoryTree column for usage examples.

The ancestors are all parents of a given category, starting from the root category and working down to the direct parent. So, given the following category tree:

Root/
├─ Sub/
│  ├─ Sub Sub/
│  │  ├─ Sub Sub Sub/
├─ Another Child/

The ancesotrs of Sub Sub Sub are ["Root", "Sub", "Sub Sub"] while the ancestors of Another Child are ["Root"]

category_tree_column_name

Required

The name of the category tree column we are connected to.