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

Using JavaScripts

  • Robert Fant
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
9 jaren 7 maanden geleden #4190 door Robert Fant
Using JavaScripts werd gestart door 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

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
9 jaren 7 maanden geleden #4192 door ronm
Beantwoord door ronm in 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/
De volgende gebruiker (s) zei dank u: Robert Fant

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

  • Robert Fant
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
9 jaren 7 maanden geleden #4193 door Robert Fant
Beantwoord door Robert Fant in 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

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Moderators: JohnSmith
Tijd voor maken pagina: 0.133 seconden
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo