---
# System prepended metadata

title: category tree Example

---

# category tree Example

* WOMAN
    * NEW-IN (本周新品) `attributeList.key= MINIPROGRAM_HOME_VISIBLE  -> show in Minip Home ;    
    published minip`
    * COLLECTION
        * BLAZERS
            * ALL
            * Jacket
            * ...
        * DRESSES
        * ...
        * WOMAN-WECHAT-HOTSALES (type= PUBLISH ONLY MINIP) 
    * JOIN LIFE
    * SALES
    * HOTSALES `attributeList.key= MINIPROGRAM_HOME_VISIBLE  -> show in Minip Home ; 
    attributeList.key= MINIPROGRAM_CATEGORY_TREE_NOT_VISIBLE   -> hide in category tree in Minip
    published minip`

* MAN
    * HOTSALE :`attributeList.key= MINIPROGRAM_HOME_VISIBLE  -> show in Minip Home ; 
    attributeList.key= MINIPROGRAM_CATEGORY_TREE_NOT_VISIBLE   -> hide in category tree in Minip
    published minip`
    * NEW IN  `attributeList.key= MINIPROGRAM_HOME_VISIBLE  -> show in Minip Home ;   
    published minip`
    * COLLECTION  `published minip` 
        * MUST HAVE `published minip`
        * BLAZERS `published minip`
        * XXXXX `published minip`
        * HOT_SALE `published minip only`
    * JOIN LIFE 
    * SALES`published minip `
    * MY RECOMENDATION-HOMBRE `attributeList.key= MINIPROGRAM_HOME_VISIBLE  -> show in Minip Home ; 
    attributeList.key= MINIPROGRAM_CATEGORY_TREE_NOT_VISIBLE   -> hide in category tree in Minip
    published minip`

* KID 
    * NIÑA
        * NEW IN
        * MUST HAVE
        * BASIC
        * XXXX
        * CN:I2020-NINOS-NINA-MINIP_HOT_SALE-NINA ` published minip only`
    * NIÑO
    * BABY boy
    * BABY Girl
    * KID-WECHAT-HOTSALE `attributeList.key= MINIPROGRAM_HOME_VISIBLE  -> show in Minip Home ; 
    attributeList.key= MINIPROGRAM_CATEGORY_TREE_NOT_VISIBLE   -> hide in category tree in Minip
    published minip`
        * GIRL-WECHAT-HOTSALES`attributeList.key= MINIPROGRAM_HOME_VISIBLE  -> show in Minip Home ; 
    attributeList.key= MINIPROGRAM_CATEGORY_TREE_NOT_VISIBLE   -> hide in category tree in Minip
    published minip`
        * BOY-WECHAT-HOTSALES `attributeList.key= MINIPROGRAM_HOME_VISIBLE  -> show in Minip Home ; 
    attributeList.key= MINIPROGRAM_CATEGORY_TREE_NOT_VISIBLE   -> hide in category tree in Minip
    published minip`
        * BABYGIRL-WECHAT-HOTSALE `attributeList.key= MINIPROGRAM_HOME_VISIBLE  -> show in Minip Home ; 
    attributeList.key= MINIPROGRAM_CATEGORY_TREE_NOT_VISIBLE   -> hide in category tree in Minip
    published minip`
        * BABYBOY-WECHAT-HOTSALES `attributeList.key= MINIPROGRAM_HOME_VISIBLE  -> show in Minip Home ; 
    attributeList.key= MINIPROGRAM_CATEGORY_TREE_NOT_VISIBLE   -> hide in category tree in Minip
    published minip`
 
 
 **rules**
 
```
WHEN the category.attributeList has key 'MINIPROGRAM_CATEGORY_TREE_NOT_VISIBLE'  
THEN always hide from the category tree menu 
```

```
WHEN the category.attributeList has key  MINIPROGRAM_HOME_VISIBLE AND categorylevel=1 
THEN is a category that  can be showed in the same  Universe Filter section HOME. 

```
 
```
WHEN the  category.attributeList has key  MINIPROGRAM_HOME_VISIBLE AND category.level=1 AND no child categories 
THEN sectiontitle == category.name AND show the product horizontal list
```

```
// check example babyboy 
// is needed to change the design to show tabs if there are. 

WHEN the category[level1].attributeList has key  MINIPROGRAM_HOME_VISIBLE AND has child category[level2]
THEN sectiontitle == category[level_1].name
AND IF  ANY category[level_2].attributeList has key  MINIPROGRAM_HOME_VISIBLE THEN sectionTab is the build with category[level_2].name 
```
 
```
To get Product to show, use the same logic as current categorys, only leaf categories has products, and the category could be redirected by category.viewCategoryId

```
 
 
 
```
check if is possible setup the universe filter home section order by category order, example 
in home we got  section 1, section 2, section 3
in the universe categories we got 
catA,
catB,
catF(category.attributeList has key  MINIPROGRAM_HOME_VISIBLE), 
catD(category.attributeList has key  MINIPROGRAM_HOME_VISIBLE)
then in the home we show
section1 = catF
section2 = catD
section3 (hide)
```