Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
The place for more technical questions for those who want to create new pagetypes or bespoke functionality.
  • Page:
  • 1

TOPIC: Using JavaScripts

Using JavaScripts 3 years 10 months ago #4190

  • Robert Fant
  • Robert Fant's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
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.

Using JavaScripts 3 years 10 months ago #4192

  • ronm
  • ronm's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 639
  • Thank you received: 170
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
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.

Using JavaScripts 3 years 10 months ago #4193

  • Robert Fant
  • Robert Fant's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
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.

  • Page:
  • 1
Moderators: jjs
Time to create page: 0.047 seconds
Copyright © 2020 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search