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.
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
Landing pages
Everything you need to manage and administer content within Brightspot CMS, including plug-and-play integrations.

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