Using jQuery with CMS Made Simple...

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
kcorey
New Member
New Member
Posts: 4
Joined: Thu Nov 08, 2007 11:36 am

Using jQuery with CMS Made Simple...

Post by kcorey »

Hi All,

I need some clarification about using jQuery with CMS.  All the examples I've found are single page examples meant to make a single point clear.  So far so good.

However, the header (where jsquery stuff is normally defined) is completely formed in the template, and is therefore loaded for every page.

How does $.ready(function() ...); work then?  Do I need to have a big switch statement that handles particular pages?  Can this be defined in the tag?  (specifically, in the primary content section)?

Thanks for your help!

-Ken    ???
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Using jQuery with CMS Made Simple...

Post by calguy1000 »

a) check out the blog at calguy1000.com.... I just added an article about the jquery stuff I've been doing
b) you can put as many ready functions as you need into the page body or the header
c) you can use the page-specific metadata field to insert page specific javascript if needed.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
kcorey
New Member
New Member
Posts: 4
Joined: Thu Nov 08, 2007 11:36 am

Re: Using jQuery with CMS Made Simple...

Post by kcorey »

Oh cool beans!

I had just discovered that I could execute jquery queries inside the tag, but that metatag trick is very sweet.

Thanks for the quick answer!

-Ken
Post Reply

Return to “Developers Discussion”