How to Create a Dreamweaver Calendar with the Spry Data Set Wizard and Yahoo UI Calendar

Written by:  • Edited by: Michele McDonough
Updated Nov 2, 2010
• Related Guides: Adobe | HTML | Yahoo

You can find commercial Calendar Wizard programs on the Web by a simple browser search. These range from $9.99 and up. However, by combining the Spry Data Set Wizard in Dreamweaver CS4 with the free Yahoo YUI Calendar Control, you can create your own calendar linked to specific events.

Introduction

The YUI library, which stands for Yahoo User Interface, is a group of multiple controls that simplify Web enhancements. In order to use one of these, you must download the specific control and install it using the Adobe Extension Manager. Start the process by downloading the YUI Calendar, which is a zipped file and then expanding it. As of November 2009, the file name was YUI_2.8.0r4.zip. This page also contains extensive tutorial information about using the Calendar that will be well worth your time to read.

Locate the Adobe Extension Manager CS4 in the Adobe program group. After opening this program, click on the “Install” button at the top. This opens a window to locate the YUI Calendar. The image in the next section shows the Extension Manager after installing and enabling the YUI calendar with a checkmark in the “Enabled” box.

You will also need to ensure you have the latest package of Spry controls. Visit the Adobe Dreamweaver support site and download this set of functions. The latest update by November 2009 was Spry_1_6_1_022400. Once downloaded and unzipped. Use the Extension Manager again to install these controls.

Add a Basic Calendar

Open a new HTML file for the Dreamweaver calendar and name it “MyCalendar.html”. Click “Insert” and “YUI,” which should now be listed at the bottom of the drop down menu that opens. Looking at the page in Design view, you will not see a calendar at this point, only a small label with a blue background reading “YUI_Calendar:yuicalendar1” confirming you have installed the Calendar. If you view the Code listing, there is some lengthy JavaScript coding that Dreamweaver created. Besides the action code lines, extensive comments are part of the display, introduced by to slash figures (//) on each line. Links to more explanatory information are here as well, including a Calendar API cheat sheet. All of this information is essential if you want to do more than just display a static calendar

Images

Adobe Extension ManagerInstalled CalendarYUI Calendar Cheat SheetInsert Spry DataSet Screen

Link to a Spry Data Set through the Wizard

In order to add dynamic functionality to the calendar, for example display information when a user clicks on a date, create a Spry Data Set, and link it to the Calendar. The Data Set can be in either HTML or XML. Select one type depending on the contents of your dataset, and then complete the Spry Data Set Wizard to convert from the original Data Set to the Spry version. In the original Calendar_Demo file, click “Insert,” “Spry,” and “Spry Data Set” This opens a window to “Specify Data Source.” Select the Data Type in the first box—either HTML or XML depending your source. The default Data Set Name is ds1; change this if you wish. If the data source uses tables, then set the “Detect” box to that method. If the data source used div commands, then change to that in the Detect box. Complete the steps in the Wizard by specifying the Data File using the “Browse” button in the next field.

Refer to the comments within the lengthy JavaScript for explanations on activating dynamic links when a user clicks on a date. How this is done depends on the individual format and type of your own linked Spry Data Set. When you have gone through all the steps, Click “Done” and save the file. Test the results by clicking on “Live View” or the Globe icon to preview the page. If everything is correct, when you click on a date, the associated event should appear in a popup.

Images

Specifying a Data SourcePartially Filled Data SetStatic Calendar

Considerations

Although creating the calendar is simple, the steps involved in building and linking a Data Set are not. You will save quite a bit of time by going through all the tutorials on the Yahoo UI site as well as additional Dreamweaver help information. There is even a video link to the Spry Data Set control on the opening page of Dreamweaver CS4.


Comments

Showing all 5 comments
 
S.B. Mar 19, 2011 12:22 PM
Integrating Google ical to embedded YUI Calendar
Thank you for your helpful information. I have installed a YUI Cal on a website, but wish to use data from a Google Calendar. Is it difficult to integrate the two (using the Google calendar as my data set for the YUI cal)? I want to avoid having my staff create and maintain a separate data set as we already use Google cal for our events calendar. I don't want to embed the Google cal, because it's just so ugly. I like the CSS flexibility with YUI cal.

I look forward to your response. Thanks in advance.

S. B.
cra8051 Nov 9, 2010 4:38 PM
"next" button in Spry Data Set Screen
When you say you see all the buttons but then they disappear, this does not sound to me like a problem in following the general directions in this article to create a calendar. Nor would it be the way the Spry Data Set process is obviously designed to work. Since you are able to use the buttons on another PC and in a newer version of CS, then clearly it is not a general issue with the Dreamweaver software on which my article was based.

The behavior you describe sounds to me like something inherent in your PC setup, installation of Dreamweaver, or file corruption of some sort. I am not able to trouble-shoot individual PC problems like this as part of my writing agreement with Bright Hub, nor frankly would it be financially possible given the very small monetary results I get from these articles.

As for what you are seeing in Dreamweaver CS5 with the bottom buttons cut off, I recall seeing something with the "Properties" display when I first upgraded from CS3 to CS4. Apparently an Adobe update cured this because I no longer see that problem.
Terry Nov 9, 2010 1:37 PM
"Next" button in Spry DataSet Screen
When I open the Spry Data Set page, I see all the buttons, including the help. Within a second or two they disappear. I have loaded Dreamweaver CS5 on another computer and the Spry Data Page work okay, the buttons show but are about a third cut off. I would really like it to work on the main computer.
cra8051 Oct 31, 2010 4:27 PM
"Next" button in Spry DataSet Screen
Are you sure the window is maximized? Scroll to the bottom. When I view this screen, at the bottom left, below "Advanced Data" is a "Help" button. On the bottom right are four buttons, "Previous" (grayed out), "Next," "Done," and "Cancel." Not viewing the entire screen is the only reason I can think of, since "Next" and the other buttons definitely are part of the "Insert Spry DataSet" process and should be visible on all three steps.

I am going to see if Bright Hub will let me add a screenshot of that page so you can verify.It may take a little while because I don't write for them anymore, but I do keep up with my published articles.

In addition, since this article was published in November 2009, the YUI people found a need to update the version. The current one is YUI 2_8_2r1.I recommend downloading this from Adobe if you have an account or one of the many links found on Google.
Terry Cott Oct 31, 2010 2:21 PM
spry data set screen
The Spry data set screen does not show the next button. I can't get past the first of three steps. Any help?
 
blog comments powered by Disqus
Email to a friend