> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: onCategoryCreated(event: CategoryCreated) # Method package: wixBlogBackend # Method menu location: wixBlogBackend --> onCategoryCreated # Method Link: https://dev.wix.com/docs/velo/apis/wix-blog-backend/events/on-category-created.md # Method Description: Triggered when a category is created. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## An event that occurs when a category is created ```javascript // Place this code in the events.js file // of your site's Backend section. // Add the file if it doesn't exist. export function wixBlog_onCategoryCreated(event) { const categoryId = event.metadata.entityId; const categoryLabel = event.entity.label; console.log('Category created', event); } /* * { * "metadata":{ * "id":"89705db7-dedf-4d44-ad72-de14ecf70793", * "entityId":"bcf9d83b-ba2f-44e8-ae27-3a9e2b723f54", * "eventTime":"2022-06-16T15:10:30.876Z" * }, * "entity":{ * "_id": "1ea22fce-bc3c-4b78-9422-f0f367f8628e", * "coverImage": "wix:image://v1/162e66_f6bffd1cd6144ddf87325b82fe8f42ed~mv2.jpg#originWidth=385&originHeight=245", * "description": "Posts about my summer", * "displayPosition": 2, * "label": "Summer", * "language": "en", * "postCount": 6, * "rank": 2, * "slug": "summer-slug" * "title": "", * "translationId": "973369ad-0d4b-41f5-a820-1eed7986e0de" * } * } */ ``` ---