Creating custom fields


Brightspot renders the standard field types in the content edit form as described in Field types. You can customize a field’s rendering using a servlet, and annotating the field with the path to the servlet.

import com.psddev.cms.db.Content;
import com.psddev.cms.db.ToolUi;

public class Video extends Content {

    @ToolUi.InputProcessorPath("/custom/videoPreview.jsp") 
    private String videoPreview;

}
  • Replaces Brightspot’s default rendering of the string field videoPreview with output from the servlet at /custom/videoPreview.jsp.

See also:

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