We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How do I create a widget with more than one javascript file?

Accepted answer
18
Views
5
Comments
edited Jun 14, 2018 2:43AM in Customer Portal 5 comments

Content

I would like to a widget with more than one javascript file and load them only on pages where the widget is present.

At the moment, I store my JS files in the assets area, but they aren't tracked by the staging and promotion mechanisms, so I can't make a change to the files without affecting the production environment. I know I have the option of creating duplicate files with versioned names, but that's too hard to manage.

Putting the files in a widget would let the portal track changes to them, so I could stage changes for testing and if they are okay, promote the changes to the prod environment. However, widgets only have a single js file, named logic.js. I would like to have multiple js files, ideally inside nested subfolders.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!