The place for more technical questions for those who want to create new pagetypes or bespoke functionality.

Using JavaScripts

  • Robert Fant
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 months ago #4190 by Robert Fant
Using JavaScripts was created by Robert Fant
Greetings All,

I am new to Xerte, and am assuming that what I'm about to ask is even possible, so please bare with me

I would like to be able to use various Javascript Libraries in my projects.
Unfortunately I can't figure out how to import them, nor where to place them.
I have seen where I can write little snippets of JavaScript in the various pages, and call on the library files. I just don't know where to place the specific *.js file.

Any help would be much appreciated,

Thanks,
Robert

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #4192 by ronm
Replied by ronm on topic Using JavaScripts
Assuming you mean with the XOT template rather than the Bootstrap template? The latter has a Javascript libraries optional property.
If you want script to be available throughout all the pages in an xot project add an optional script property to the first icon in the tree. Obviously you can add script in there directly or link to script too I think.
HTH
Ron

Xerte developer & trainer
e-learning & m-learning consultant
mitchellmedia.co.uk | xerteacademy.com | learningapps.co.uk
Note: Support here is voluntary and meant for users to support each other.
Need direct commercial support with Xerte? mitchellmedia.co.uk/contact/
The following user(s) said Thank You: Robert Fant

Please Log in or Create an account to join the conversation.

  • Robert Fant
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 months ago #4193 by Robert Fant
Replied by Robert Fant on topic Using JavaScripts
Thanks Ron.
Yes, that worked.
And yes, you can link to external files.

This should keep me busy for a while.

Robert

Please Log in or Create an account to join the conversation.

Moderators: JohnSmith
Time to create page: 0.125 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo