Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37670

Re: integrating moolde-local_jquery in view

$
0
0
by Onno Schuit.  

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


Viewing all articles
Browse latest Browse all 37670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>