HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


JQuery integration?

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#64957 (In Topic #13974)
Avatar

Well-settled

Hi,
i know i prepare myself to be the master of stupid questions, but here is yet another one: How do i include JQuery for my website? Adding it to to the header template is sure easy enough, but would i have to do that for every theme or is there a sitewide solution?
Back to the top
 
Posted
Rating:
#64960
Avatar

Community saint

To the best of my understanding you will probably need to add the JQuery library call to the HEADER.tpl of every theme.

I uploaded the jquery.js to the root of my site so that the same link can be called in every header template (copy/paste). It also makes it easy to update a single instance of the file when JQuery rolls out an update.

Be prepared for ocPortal to complain about a 'non-standard' file being present in the root when you do a file integrity check. But if you know you put it there it is easy to ignore!

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: