Advanced: Using Drop Down Menus With Calendars |  | | Ok, so now you can build drop down menus, but what happens when you want to show events from a calendar? Once the calendar has more than 10 events, it gets too long.
There is a nice little trick to use a slightly different call to pull just the upcoming events, and sort them by date.
Note: If you haven't read about drop down menus yet, see the related article in the Creating Invisible Gold Powered Sites section of help.
1) You need to find the spot in the framework file that makes a gethtml call for each drop down menu. For example, here is a normal one, and the separate "calendar" one.
menu_Array2 = [ [150,263,58,"#000000" ,"#000000","#E2DEB2","#ffffff",,,0,0,0,1,1,1,"null","null",,] <gethtml data="extendedobject" id="/company" mode="dropdownmenu4" objtype="default"/> ]
menu_Array3 = [ [150,357,58,"#000000" ,"#000000","#E2DEB2","#ffffff",,,0,0,0,1,1,1,"null","null",,] <gethtml data="extendedobject" id="/schedule" mode="dropdownmenu4_upcoming" objtype="default"/> ]
Note: the ID= line in the second one. /schedule is the page id for a calendar.
2) Now you just need to copy the two files here into your /templates/default folder. Be sure to edit the "dropdownmenu4_upcoming.xsl" file to include the right page id. But that's all. You should be showing upcoming events. You can also edit the gethtml tag in this file to change the number of days to show.
|
| |
|
How do I get a Flash movie to show up under a drop down menu (CSS or javascript)? Answer: you need to set the wmode value to "transparent" when embedded the movie into the page.
For....
more
System Shipping Settings With Invisible Gold 3.1 and newer, you set shipping levels in the system settings page. The main op....
more
How Do I Add a Facebook "Like" Icon? This is pretty easy. Basically, you need to paste some code into an IG Framework, Template, or just....
more
How do I set a "Fav Icon"? You need to generate a small graphic file. JPG or PNG are probably the best choice. Then save the ....
more
How do I change my password? You can go to the login page as though you are logging in. There is a link (if enabled) called "cha....
more
How do I get the 32bit "Cleansites.vbs" script to run on x64 Windows servers? Assuming you have Invisible Gold running the server already, it's pretty easy.
1) Edit the cleansit....
more
Template Library ....
more
How do I make FireFox have a tab for my email and website when I open it? Answer:
First, get the tabs the way you like them. In your case, have one for the website, and th....
more
|