Actually, it should be via a code.embed.yourscript page. Then to inject it into the page, you put
[(embed yourscript)]. Or in a skin you could put: ==[(embed yourscript)]== I don't think we currently have any way to control which pages have access to which embed scripts however. We could set up a simple site.auth.embed easily enough. Just one line to the core. I generally try to use BOLTpluginHeader or BOLTpluginBody, or something. And then prepare the script via php. It's a little bit of a hassle escaping the quotes and all to do it properly, but it makes it easier on the user end. They just click a button, and presto, it's installed. There's also code.snippets/code.snippets.skinname for shorter scripts. Just wrap them in /= =/ Still it would be nice if we had a place to put javascript, then you could just link to the files. Perhaps a custom js folder in the farm or field folder. Or perhaps a scripts folder if it might include other kinds of code. But then we are getting out of the normal mode of installation. And there might be security issues... There's also the files folder which is kind of like a public directory. What do you suggest? Cheers, Dan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BoltWire" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/boltwire?hl=en -~----------~----~----~----~------~----~------~--~---
