Using Nitobi Dreamweaver Extensions

Installation

If you've purchased the Complete UI Dreamweaver Extensions, download the nitobi_cui.mxp file from the Customer Center at Nitobi.com, and run it. When the installation is complete, you can check the Adobe Extension Manager to see that the installation has worked correctly.

a-install.gif

When you open Dreamweaver, you should see the Nitobi extensions included in the Insert toolbar - if you select the Nitobi tab, you can find buttons for inserting each of the components.

a-toolbar.gif

Inserting a Component

You will need a saved file to insert Nitobi components: either a page you have already worked on, or a new page that you'll save before inserting a component. You can either click on one of the buttons or drag it into place in Design View. For this tutorial, we are going to insert a Calendar, the simplest of the components to start with. Inserting a Calendar into your page starts the Calendar insertion wizard.

a-calwiz.gif

You will need to give the Calendar a unique id, so the JavaScript initialization can locate the correct component. The other fields are optional - if you leave them empty, default values are inserted. A preview in Design View of how the Calendar will appear in your page.

a-designview.gif

At the bottom of the screen, you can access the Calendar's properties through the Properties Inspector. As well as changing the Width, Height and StartDate attributes, you can also specify a CSS Class (either one you have defined yourself, or one from the Nitobi stylesheet), and any JavaScript behaviour to attach to the Onsetdate event.

a-properties.gif

If you switch to Code View, you can see that the extensions have automatically set up your page to include Nitobi components: the xml namespace is set in the HTML tag, the stylesheets and script files are linked, and the "calendar1" component is loaded when the page is initially.

a-codeview1.gif

At the moment, the stylesheets and script files are linked to locations on the local hard drive. When you save your file, Dreamweaver will prompt you to move these dependent files to a folder on your site. Whenever you use a different component on your site, the relevant stylesheets and script files are moved onto your site.

a-dependc.gif

Once the files have been copied over, you can check that they have been copied correctly by looking at your site directories in the lower-right hand corner of the screen.

a-site.gif

The references on your page are then automatically updated.

a-codeview2.gif

You can now preview your component in a web browser by hitting F12.

a-preview.gif

Congratulations - you've just inserted your first Nitobi component!

page revision: 0, last edited: 1226358227|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License