Your sites Log in Sign up Menu

How to modify values in the JSON structure associated with a Blot page?

All the Blot data like entries and tags are stored in a JSON structure associated with each page. (I mean the JSON data I can see when I add ?debug=true to the page.)

When I'm on the page how can I access (and modify) this JSON info via JavaScript, say, in the load event? I assume the JSON structure is stored as an object somewhere in the DOM?


a year ago, 2 replies   Improve this question

You could use JS to make a second web request to the same page with the query string ‘debug=true’

Or you could hard code the variables needed into a script tag within the template view.

The second method is best, in my opinion

Answered a year ago · Improve this answer

Sorry, I'm not 100% with you; what do you mean with "hard code the variables needed into a script tag within the template view"? E.g. I want to use the Blot tags variable, how do I access it from JavaScript?

Answered a year ago · Improve this answer