How to create and use constants in prisimc

Hello everyone,

My problem is that I have no idea how to create and reuse constants with Prismic.

Example
I have ten or more pages that use the same constant PI(3.14) and for some reason I need to update that from 3.14 to 3.141.

How should I implement these number changes without the need to go to all pages one by one to update them manually inside prismic?

BIG thanks in advance :slight_smile: :sunflower: .

Hi Arnas,

Welcome to the community! :grin:

Unfortunately this isnโ€™t something thatโ€™s available at the moment, so you will have to make these edits manually.

I agree this could be really useful so Iโ€™m tagging the @features-team so that we can track this as an open feature request.

Thanks.

If you have lots to do, you could add a custom integration field. That is overkill if you only have a few.

1 Like

Thank you for answers. :slight_smile:

I will think and look for solution, will share it later. :cherry_blossom: :pray:

This is being tracked as an open feature request.

If you have another use-case for this feature, you can 'Flag' this topic to reopen. Please use the :heart: button to show your support for the feature and check out our Feature Request Guidelines.