Set up a project
...
Structure of Dynamic resources
experience.config

Dynamic Text using messages and views

4min

Experience Builder



Summary

In the Purple Experience Builder, assume you would like to add an extra variable to recipe-infos-time via variables field in views.json, that you want to style accordingly. At the same time, you want to fertilise the clean use of data by your editors.



How to

Scenario

You want to add an extra variable to recipe-infos-time via the variables field in views.json in your Purple Experience.

Messages.json
Messages.json

1

Add a new placeholder in the messages.json, RECIPE_INFOS_TIME): %s is a placeholder.

2

Adding a new entry to the "variables" in your views.json and passing in the data you want it to replace the %s with. In this case, that would be something like $functions.formatTimeString($context.content.properties.whatever_the_time_is)

views.json
views.json