Get Started: Promotion Document Type - Bloomreach Experience - Headless Digital Experience Platform

Get Started: Promotion Document Type

Previous: Content-Driven Component - Next: Promotions Query Component

Introduction

Goal

Create a "promotion" document type using the document type editor.

Prerequisites

Before starting:

In the next tutorial, you'll create a page component to render current promotions.

Create a Development Project with Document Type Changes Enabled

Create a development project and make sure to check the Include document type changes checkbox:

Create the Promotions Document Type

Navigate to the Content app and from the dropdown in the top left, choose Document types:

Browse to the "brxsaas" namespace folder and from its context menu, choose New document type:

In the New document type dialog, enter "Promotion" in the Name field, choose the 1 Column layout, and click OK.

A new, blank "Promotion" document type will be opened in the document type editor. Add the following fields:

Field Type Path Required Default Caption
String name Name
Text text Text
String promocode Promo code
Date expirydate   Expiry Date

Click Done to save the document type.

Create Promotion Documents

From the dropdown in the top left, choose Documents.

Select the "BrX SaaS" root folder and create a subfolder named "promotions".

In the new "promotions" folder, create a new "Promotion" document. Give it a name, for example "Spring Promotion".

A new empty "Promotion" document will be opened in the document editor.

Enter some content in all the fields, for example:

  • Name: "Spring Promotion"
  • Text: "15% off on all orders!"
  • Promo Code: SPRING15
  • Expiry Date: (choose a date in the near future)

Note the message at the top of the editor: Project version: 'Promotions' (offline). Because the new document is of a document type under development, it is automatically added to the appropriate development project.

Click Done to save the document.

Create a couple more promotion documents. In the next tutorial, you'll create a page component to render current promotions.

 

Previous: Content-Driven Component - Next: Promotions Query Component

Did you find this page helpful?
How could this documentation serve you better?
On this page
    Did you find this page helpful?
    How could this documentation serve you better?