Brightspot CMS Developer Guide

Creating a content type


A Brightspot content type is a Java class that has specific properties describing an item. For example, the content type Article can have properties headline, body, reporter, and datePublished. A content type ReaderComment can have properties body, username, and datePosted.

The first step in creating any content type is to declare it as a Java class that extends the Brightspot class Content.

public class Article extends Content {

}

This declaration exposes all the static fields and methods you can review at Class Content. In addition, the class Content extends the Dari class Record; this class is a powerful abstraction layer for retrieving and adding content to a database. For details, see Class Record.

Previous Topic
Overview of content modeling
Next Topic
Field types
Was this topic helpful?
Thanks for your feedback.
The elements that get you up and running in a matter of days, from pre-built content types, to modules, to landing pages.

Content types
Modules
Landing pages
Everything you need to manage and administer content within Brightspot CMS, including plug-and-play integrations.

Dashboards
Authoring content
Workflows
Admin configurations
A guide for installing, supporting and administering code on the Brightspot platform, including integrations requiring developer support to use.

Field types
Content modeling
Rich-text elements
Images