Category Discovery
Query all available community categories with sorting options
Flexible Sorting
Sort by creation date, alphabetical order, or custom criteria
Deletion Management
Include or exclude deleted categories from query results
Live Collections
Real-time updates when categories are modified
Category Query
ThegetCategories()
function retrieves all available community categories with flexible sorting and filtering options. This method returns a Live Collection that automatically updates when categories are modified.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
sortBy | Enum | No | Sort order for categories |
includeDeleted | Boolean | No | Include deleted categories in results |
Sort Options
Option | Description |
---|---|
displayName | Alphabetical order by category name |
firstCreated | Oldest categories first |
lastCreated | Newest categories first |
User Experience
Category Display
- Show category names clearly in navigation
- Display community counts per category
- Provide search/filter within categories
Navigation Design
- Use categories for intuitive community browsing
- Implement breadcrumb navigation
- Allow quick category switching
Common Use Cases
Community Organization
- Create category-based navigation menus
- Filter communities by topic or interest
- Build hierarchical community structures
Discovery Enhancement
- Implement category-based search filters
- Create topic-specific community recommendations
- Build category landing pages
Administrative Tools
- Track community distribution across categories
- Monitor category usage and popularity
- Manage category-based permissions