Brightspot CMS Developer Guide

Creating StorageItems


You create a storage item in the default storage location using StorageItem.Static.create(). (For details about declaring the default configuration, see Setting the default StorageItem configuration.)

StorageItem newStorageItem = StorageItem.Static.create();

In addition, you can specify a different storage location using StorageItem.Static.createIn("configurationKey").

StorageItem newStorageItem = StorageItem.Static.createIn("myStorageName");

In the previous snippet, Dari instantiates the storage item newStorageItem using the storage item configuration Key myStorageName defined in the Tomcat context.xml.

See also:

Previous Topic
File Storage
Next Topic
Upload handling
Was this topic helpful?
Thanks for your feedback.
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
Brightspot is packaged with content types that get you up and running in a matter of days, including assets, modules and landing pages.

Content types
Modules
Landing pages
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