Writable Page Context

Don’t think this is possible right now, but it would be nice to have some kind of context for the current page that could be used to store some variables on.

Right now I try to create a new short code - it needs to include some javascript, but I only need to include that once per page.

So I want to say

$page.jsIncluded = true


if not $page.jsIncluded

You should be able to set a param and read it from within a shortcode. We may need to do some work to enable that, but it shouldn’t be hard.

Yes. Now that I have walked through the shortcode code, I’ll see if I can cook up some solution for it myself.