Hello,
I am trying to do something without any further code changes as that’s a different team and requires more planning, time, etc. I wanted to know if there’s any way to access the fields from the model we are using in the visual editor.
We are using the page model to create landing pages, and I want to add a field to the model something like productName. And then wherever we have the product name on the page I want to use data binding to access the field to get the page name. According to some docs I read, I shoul
For example we have a section on our page that has text:
“Save up to 40% on %Product Name% with your HSA/FSA dollars”, instead of duplicating this text on all our product pages and then manually changing out the page name. I want to use the Combine Text data binding to insert the product name there. I got this to sort of work by creating a Content Input and it adds it to state, but I was hoping there was a way to just directly access the object of the page itself.
Also according to the docs it should be possible to use {{state.*}} in the text editor to display dynamic data, but it is not working for me. I added the isolate-vm stuff per the instructions on integrating on my localhost, but still nothing
Builder content link
Builder public api key
go to Builder.io: Visual Development Platform and copy your PUBLIC api key
Code stack you are integrating Builder with
NextJS, React