Skip to Content

How to define GLOBAL variable and function in Persona which will applicable for all script

Hi ,

I am working on Persona 3.0 SP5. We have very complex script. How to define the global variable or global function in Frontend side. I know there is one way to upload the .js file from backend. But i need to frequently update that file so can't use that technique.

or can we load any script into our script so that i can use the content of that script.

But i want to create one file on frontend use it anywhere.

Thanks

Nishant

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 13, 2017 at 04:38 PM

    I'm not sure I fully understand what you want to do... but you have a way to store scripts as resources via the Admin transaction, thus build your central script library. Then, you can load (reference) those scripts in your flavors. Check this KB article for details.

    Add comment
    10|10000 characters needed characters exceeded