General developer forum

 
 
Picture of Erica Underwound
Re: integrating moolde-local_jquery in view
 

Hi Celine,

this is the link to the plugin: https://github.com/bumoodle/moodle-local_jquery

Thank you for your tip. Unfortunalty I am still not sure on how to apply this on the whole plugin, consisting of styles and scripts ...

 

 

 

 
Average of ratings: -
Picture of Céline Perves
Re: integrating moolde-local_jquery in view
 

Thank you for the git link

 
Average of ratings: -
Onno
Re: integrating moolde-local_jquery in view
 

Hi Erica,

Soda author here (sorry to respond so late, didn't see your message before). You can always include a javascript library through your theme. But if you only want to include jquery in the views of your Soda based module, you can use the views/template.html file. (The template is documented on tech.solin.eu.)

Inside your template.html view, just include jquery like this:

<script type="text/javascript" src="<?php echo $CFG->wwwroot ?>/mod/yourmod/a-jquery-version.js"></script>

Hope this helps you out!

By the way, I'm very curious what you're using Soda for. Could you tell us a little more about your module?

 

Bye!

Onno

 
Average of ratings: -