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.

Browse All Docs

Everything you need to know when creating, managing, and administering content within Brightspot CMS.

Dashboards
Publishing
Workflows
Admin configurations
A guide for installing, supporting, extending, modifying and administering code on the Brightspot platform.

Field types
Content modeling
Rich-text elements
Images
A guide to configuring Brightspot's library of integrations, including pre-built options and developer-configured extensions.

Google Analytics
Shopify
Apple News
Brightspot is packaged with content types that get you up and running in a matter of days, including assets, modules and landing pages.

Assets
Modules
Landing pages
Our robust, flexible Design System provides hundreds of pre-built components you can use to build the presentation layer of your dreams.

Asset types
Module types
Page types