Configuring a paywall for a content type
To enable paywalling, you need to modify an existing content type to include a paywall toggle.
Tip
The following procedure describes how to apply a paywall to one of Brightspot's standard content types. You can also apply a paywall to an editorial content type. For information about creating an editorial content type, see Editorial content types.
To add a paywall to a content type:
- Click > Admin > Content Types.
- Under Content Type Modifications, click New.
- From the Types list, select the content type to which you are adding a paywall.
- Under Additional Items, do the following:
- Click and select Boolean Field.
- In the Name field, enter a field label, such as
Paywalled
. - In the Developer > Annotations field, paste
field.as(Java.type('brightspot.entitlements.zephr.ZephrContentApiCustomVariableObjectFieldModification')).setZephrCustomVariable(true)
.
- Click Save.
When creating new assets based on the content type (such as new articles), editors see a Paywalled toggle in the content edit form. Toggling on Paywalled applies a paywall to the asset.