Support and Documentation

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") 1
    private String videoPreview;



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