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
.Paywall name - In the Developer > Annotations field, paste
field.as(Java.type('brightspot.entitlements.zephr.ZephrContentApiCustomVariableObjectFieldModification')).setZephrCustomVariable(true)
.Paywall annotation
- 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.
![Paywall toggle for article](https://brightspot.brightspotcdn.com/dims4/default/1f0fb43/2147483647/strip/true/crop/531x292+0+0/resize/531x292!/quality/90/?url=http%3A%2F%2Fbrightspot-brightspot.s3.amazonaws.com%2Fbsp%2F50%2Fed%2Ffd920f3c4f23b9b9ed593d5f004b%2Fpaywall-toggle-for-article.png)
![Paywall toggle for article](https://brightspot.brightspotcdn.com/dims4/default/1f0fb43/2147483647/strip/true/crop/531x292+0+0/resize/531x292!/quality/90/?url=http%3A%2F%2Fbrightspot-brightspot.s3.amazonaws.com%2Fbsp%2F50%2Fed%2Ffd920f3c4f23b9b9ed593d5f004b%2Fpaywall-toggle-for-article.png)
Paywall toggle for article
Previous Topic
Configuring the Zephr Content API
Next Topic
Premium integrations