---
title: "ICategory Interface"
canonical: https://customerscanvas.com/docs/cc6/customerscanvas.baseeditor.configuration.ui.iassetsources.iprivatesourceconfig.igallerysourceconfig.icategory.htm
archived: true
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Design Editor"
    versions: ["6.15.0", "6.x (may differ)"]
---

**You’re viewing outdated documentation.** [View the latest Customer’s Canvas On-Premises documentation](https://customerscanvas.com/docs/on-premises/).

# ICategory Interface

**Applies to:** Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · **Archived documentation**
 
A structure restricting folders in the **public gallery**.
  
This example illustrates how you can display images from the following folders:
 
`\PublicGalleryFolder\logos\photos\`
 
`\PublicGalleryFolder\logos\photos\buildings\` and subfolders
 
`\PublicGalleryFolder\logos\shapes\` and subfolders
 
 - example
     - clientConfig.json
 
```
{
    "assetSources": {
        "Public Gallery": {
            "type": "PublicSource",
            "allowedExtensions": [ "gif", "jpg", "svg", "pdf" ],
            "rootCategory": {
                "name": "logos",
                "categories": [
                    {
                        "name": "photos",
                        "categories": [
                            {
                                "name": "buildings"
                            }
                        ]
                    },
                    {
                        "name":  "shapes"
                    }
                ]
            }
        }
    }
}
```
 
## Properties
 
### Optional categories
 
categories: [ICategory](https://customerscanvas.com/docs/cc6/customerscanvas.baseeditor.configuration.ui.iassetsources.igallerysourceconfig.icategory.htm.md) []

An array of subfolders to be displayed.
 
### name
 
name: string

The name of a folder to be displayed.
