Calendar module capabilities

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
dlpirl

Calendar module capabilities

Post by dlpirl »

I can't tell from the calendar module help if it is possible to have event info appear on mouseover as I can with 'Easy PHP Calendar 6' (See a site we designed with that calendar at http://www.lighthousebenicia.org for an example.) Am I expecting too much from the CMSMS Calendar module?

--Donald
Last edited by dlpirl on Thu Nov 29, 2007 4:20 pm, edited 1 time in total.
cyberman

Re: Calendar module capabilities

Post by cyberman »

Hi Don,

think it should possible. You have "only" to ajaxify the calendar templates.
dlpirl

Re: Calendar module capabilities

Post by dlpirl »

Ah, here's my opportunity to get into ajax :). Are there any CMSMS docs to help me with 'ajaxification'? ;)

--Donald
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Calendar module capabilities

Post by calguy1000 »

well it's not that hard..... xmlhttp is quite simple with cms..... you just have to create the url.

the url would be like:
http://www.mysite.com/index.php?mact=Ca ... am2=value2

That will return you just the results of that one module action, and then you can do whatever you want with that output in javascript.

I would suggest you start with creating a funky detail template that just returns the details of what you want to throw in the javascript tooltip/popup thingy....  and test it by using a made up url that matches the example given above directly in your browser.  If that works, then go ahead with the javascript stuff.

The one issue you will have, is getting the eventid into a javascript variable that you can later use to build the url you need.

This can be done by putting some carefully crafted javascript into the summary template you created above.... using {literal} and {literal} tags to isolate the javascript from the smarty code.

I've done similar things for the FLVPlayer module.
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.
cyberman

Re: Calendar module capabilities

Post by cyberman »

Think ajaxification like I mean can be done by

http://bassistance.de/jquery-plugins/jq ... n-tooltip/
dlpirl

Re: Calendar module capabilities

Post by dlpirl »

oooo cool I like it and will definitely look into using this approach.  Thanks!
Locked

Return to “CMSMS Core”