← ClaudeAtlas

contentbox-cfml-content-typeslisted

Use this skill when implementing ContentBox content models and rendering flows, including entries/pages/content stores, custom fields, entity relationships, lifecycle callbacks, and content-type specific behaviors.
ColdBox/skills · ★ 0 · AI & Automation · score 61
Install: claude install-skill ColdBox/skills
# ContentBox Content Types & Custom Fields (CFML) Extend ContentBox content types and add custom fields using CFML. ContentBox supports entries, pages, and ContentStore items with extensible custom field capabilities. ## Content Types ContentBox has three primary content types: | Type | Entity | Service | Description | |------|--------|---------|-------------| | **Entries** | `Entry` | `entryService@contentbox` | Blog posts with dates, categories, comments | | **Pages** | `Page` | `pageService@contentbox` | Static pages with hierarchical structure | | **ContentStore** | `ContentStore` | `contentStoreService@contentbox` | Key-value content blocks | ### Entry Entity ```cfml property name="entryService" inject="entryService@contentbox"; // Entry properties entry.getEntryID() entry.getTitle() entry.getSlug() entry.getHTMLContent() entry.getPlainTextContent() entry.getPublishedDate() entry.getCreatedDate() entry.getModifiedDate() entry.getIsActive() entry.getIsPublished() entry.getHits() entry.getNumberOfComments() // Relationships entry.getAuthor() // Author entity entry.getCategories() // Query of categories entry.getComments() // Query of comments entry.getSite() // Site entity entry.getFeaturedImage() // Media entity // Status entry.getStatus() // "published", "draft", "pending" entry.isPublished() entry.isDraft() ``` ### Page Entity ```cfml property name="pageService" inject="pageService@contentbox"