Section 19.2. Dreamweaver Extensions

19.2. Dreamweaver Extensions

While keyboard shortcuts give you an easy way to access frequently used commands, they're not much help if the command you want doesn't exist. Suppose, for example, that you use the Validate Form behavior to make sure visitors to your site properly fill out your forms (see Section 10.4). However, you wish that in addition to just checking for an email address or number, it could check for phone numbers, Zip codes, and Social Security numbers . What's a Web designer to do? You could dash off a quick email to wish-dreamweaver@macromedia.com, asking the bustling team of programmers to add the command to the next version. But you'd have to wait (and there's no guarantee that Macromedia would do it).

The legions of hard- core Dreamweaver fans have taken this feature wish-list issue into their own hands. As it turns out, amateur (and pro) programmers can enhance Dreamweaver relatively easily by writing new feature modules using the basic languages of the Web: HTML, JavaScript, and XML. (In fact, HTML forms, JavaScript programs, and XML documents constitute much of the program. The objects in the Insert bar, for example, are actually HTML pages stored within Dreamweaver's Configuration folder, and all of Dreamweaver's menus have actually been written as an XML file.)

Because of this " open architecture," you can add new functions and commands, called extensions , to Dreamweaver by downloading the work of all of those programmers. A Dreamweaver extension can take many forms and work in a variety of ways to change the way the program works. It can be an icon on the Insert bar, a behavior listed on the Behaviors panel, or a command in the Commands menu. It might even be an entirely new floating window, like the Property inspector, that you use to alter some aspect of your page.

Best of all, whereas programming ability may be required to create extensions, none at all is necessary to use them. You can download hundreds of extensions from the Web and install them on your computer for free. In addition, many sophisticated extensions, like those for creating e-commerce sites, are commercially available.


Note: Extensions have been around for many versions of Dreamweaver. Unfortunately, each version of Dreamweaver added a few kinks for extension developers, so not all extensions out there work with Dreamweaver 8. (Many extensions that were compatible with Dreamweaver MX 2004 do work with Dreamweaver 8.) Most extension developers list which versions of Dreamweaver their extensions work with, and you can also check for version compatibility on the Dreamweaver Exchange (see Figure 19-2).

19.2.1. Browse the Exchange

The largest collection of extensions waits at the Macromedia Exchange Web site. Here, you'll find hundreds of free and commercial extensions. Although some come from Macromedia itself, the vast majority are written by an army of talented Dreamweaver users.

Using the Exchange is a straightforward process:

  1. In your Web browser, go to www.macromedia.com/exchange/dreamweaver/ .

    You can also get there from within Dreamweaver by choosing Commands Get More Commands.

  2. Browse the extensions .

    Once you've logged into the site, the home page highlights new and popular extensions. Overall, however, you may find the Exchange site a bit confusing and difficult to use. (For example, the entire site is in Flash, so Mac visitors can't even use their browser's Back button to travel back to earlier screens.)

    Near the top of each page, you'll see a pop-up menu that lists different categories of extensions: Accessibility, DHTML/Layers, Navigation, Productivity, Flash media, Scripting, Tables, Text, eCommerce, and so on. When you choose a category, you go to a page listing all of the extensions within that category (see Figure 19-2).

    If you're looking for a particular extension, the Search command is your best bet. Click the Search Exchanges button (see Figure 19-2). On the Search page, type the extension's name , or a few descriptive words, into the Search Extensions field; select Dreamweaver Exchange from the exchange menu (Macromedia has exchanges for several products, including Flash and ColdFusion); and then click Search.

  3. Click an extension's name to go to its Web page .

    On an extension's page, you'll find lots of information about the extension, such as a description of how it works, a button to either purchase or download the extension, information about which version of Dreamweaver and which operating system (Windows or Mac) it's compatible with, and buttons to add the extension to Favorites and Alerts lists. The Favorites option lets you create a personal list of the extensions you've found to be the best; the Alerts list feature means you'll receive an email whenever the extension is updated (see Figure 19-3).

19.2.2. Find a Good Extension

How do you figure out which extensions are worth checking out? First, you can find some recommendations of the best ones scattered through this book in special boxes labeled Extension Alert (see Section 4.3 and Section 10.3.7, for example).

The Exchange also provides information to help you separate the wheat from the chaff. Macromedia tests each new extension before posting it. Extensions that pass a basic set of testsit installs OK, it works, it doesn't blow up your computerget a Basic approval rating. Some extensions also pass a more rigorous test that determines if the extension works in a way that's "Dreamweaver-like." In other words, these extensions are designed to look, feel, and act like the program, so that you won't need to learn a new interface. These extensions get a Macromedia Approved rating, indicated by the word Macromedia in the approval section of an extension's details page.

Of course, these approval ratings only let you know if an extension works; they don't tell you that it's useful . As an extra aid, Dreamweaver aficionados (including you) can rate each extension on a scale of 1 (worst) to 5 (best). An extension's average rating gives you a good indication of how handy it is. When you're browsing the Exchange, look for the column labeled with a star to the right (see Figure 19-2). Click the header to organize the extensions from most to least recommended.

19.2.3. Other Extension Sources

Unfortunately, the glory days of totally free extensions are over. You can still find plenty of extensions offered free of charge, but many developers have realized they can't survive by giving away their work. The upside is that there are more excellent , polished, well-documented commercial extensions than evermany even with customer support. Here are a few highlights:

  • The DMXZone (www.dmxzone.com) has a large selection of free and commercial extensions, including a collection of extensions for PHP, ASP, and ASP.NET that let you add file-uploading features to your site.

  • Project Seven (www.projectseven.com/extensions/) offers free extensions and several excellent commercial extensions for creating animated Dynamic HTML and CSS menus, scrolling text areas, CSS-based page layouts, and more.

    Figure 19-3. Each extension has its own page in Macromedia Exchange that provides information about the extension and its developer. A helpful voting mechanism (15 stars) lets you know what other people think of the extension.
  • Tom Muck (www.tom-muck.com/extensions/) is a longtime extension programmer and has a good selection of extensions for dynamic, database-driven Web sites. He offers many free extensions in addition to his excellent commercial products.

  • If PHP (see Section 20.1.1.4) is your bag, then you'll find an impressive collection of extensions at Felix One (www.felixone.it/extensions/dwextensionsen.asp).

  • And if Dreamweaver's PHP/MySQL tools don't cut the mustard, you can turn to the well-respected development company InterAKT (www.interaktonline.com). This company sells a powerful extension set that replaces Dreamweaver's PHP tools for creating dynamic Web sites. They've also increased their line of extensions with e-commerce offerings, menu systems, and more.

  • WebAssist (www.webassist.com) is one of the newer extension developers, but with a former Dreamweaver product manager at the helm, they've quickly produced a wide variety of high quality extensions.

  • Trent Pastrana (www.fourlevel.com) sells extensions for building photo galleries, whiz-bang DHTML effects (like menus that slide onto the page), or scrollers that move text up and down (or left and right) across a Web page.

You can find a much longer list of extension developers at www.sawmac.com/resources/index.php?cat=4.

19.2.4. Download and Install Extensions

Once you've found a great extension, download it to your computer. You can save the resulting downloaded file anywhere on your computer, but you might want to create a special folder. That way, if you ever need to reinstall Dreamweaver, you can quickly find and add your collection of extensions.

A downloaded extension file's name ends with .mxp, which stands for Macromedia Exchange Package. That's a special file format that works with the Extension Managerthe program, described next, that actually installs the extension into Dreamweaver.

19.2.5. Extension Manager

To add or remove a Dreamweaver extension, you use the Extension Manager, a standalone program that's integrated with Dreamweaver. It's designed to manage extensions for many Macromedia programs (not just Dreamweaver): you can install extensions, turn them on and off, and remove them. This feature can be quite handy if you also use Macromedia's Flash or Fireworks programs; you have a single access point for managing all your extensions.

You can launch the Extension Manager from within Dreamweaver by choosing Help Manage Extensions or Commands Manage Extensions (see Figure 19-4).

Figure 19-4. The Extension Manager window lists each extension you've installed, along with its version number, type, and author. If you select an extension from the list, a description displays in the bottom half of the window. The Windows and Macintosh versions differ slightly. The Windows version (top) includes four buttons for easy access to common tasks; you can perform the same tasks on the Mac (bottom) from the File and Help menus.

To add an extension:

  1. Download an extension package (.mxp file) from the Exchange or another Web site .

    See instructions on Section 19.2.4.

  2. From Dreamweaver, choose Help Manage Extensions (or Commands Manage Extensions) .

    The Extension Manager launches. It lists all currently installed extensions (see Figure 19-4).

  3. Choose Dreamweaver 8 from the pop-up menu .

    Since the Extension Manager handles extensions for several different programs, you need to specify which program you're using. Of course, if you don't have any other Macromedia products installed on your machine, Dreamweaver 8 is the only option.

  4. Choose File Install Extension .

    If you're using Windows, you can also click the Install Extension button. The Select Extension window appears, listing the folders on your hard drive.

  5. Navigate to and select the extension package (.mxp file) you wish to add .

    A disclaimer appears with a lot of legal text. In brief, it holds Macromedia free of liability if your computer melts as a result of installing the extension.

  6. Click Accept in the Disclaimer window .

    A message may appear that asks you to quit and restart Dreamweaver. If so, follow the directions.


Tip: You can also install an extension simply by double-clicking the .mxp file after you download it, which saves you a few steps.

To remove an extension, select it from the list and choose File Remove Extension (or, in Windows, click the Trash Can button).


Tip: If you install a lot of extensions, Dreamweaver may take longer than usual to load; it needs to process every extension file as it opens. If you want to temporarily turn off an extension (as opposed to deleting it), open the Extension Manager and turn off the box next to the extension's name. To turn it back on again, simply turn on the box again. You may need to restart Dreamweaver to make the extension available again.

19.2.6. Make Your Own Extensions

The Exchange is a great resource for finding useful extensions. But what if you can't find the extension you need? Create your own.

Writing extensions requires in-depth knowledge of JavaScript and HTML. But when you create a command that lets you complete a weekly task in a fraction of the time it previously took, the effort may just be worth it. For more information, the Extensions menu available from the Help menu provides two electronic references that can help. The Macromedia Web site also offers help at the Dreamweaver support center: www.macromedia.com/support/dreamweaver/extend.html.

POWER USERS' CLINIC
The Secret Life of Extensions

Where do extensions go? The basic answer is: inside the Dreamweaver 8 Configuration folder. (This folders location varies by operating system, as described on Section 19.1.2.)

But Dreamweaver actually supplies you with multiple configuration folders: the main folder located with the program itself, and account-specific folders for each user account on a computer. Windows and Mac let multiple users have an account on a single computerone for you, your spouse, and pet ferret , for example. Of course, you may be the only one using your computer, so in that case there'd be just one additional configuration folder.

The main configuration folder is located, on a Windows machine, in C:\Program Files\Macromedia\Dreamweaver 8 ( assuming the C:\ drive is your main drive). On a Mac, you can find it here: Mac Volume Name:Applications:Macromedia: Dreamweaver 8 . The individual account configuration folders are located in folders dedicated to each user. In Windows: C:\Documents and Settings\User Name\ Application Data\Macromedia\Dreamweaver 8 . On a Mac: Volume Name:Users:User Name:Library:Application Support: Macromedia:Dreamweaver 8 .

Some changes you make to Dreamweaver are recorded in your personal configuration folder, such as when you add an extension, delete a keyboard shortcut set (see Section 19.1.3), or save a workspace layout (see Section 1.2.5).

The main Configuration folder holds many of the files that control the look and operation of the program. For instance, the entire menu structure, including menu items and submenus, is described in a file called menus.xml . When Dreamweaver starts, it reads this file and uses the information inside it to draw the menus on the screen.

The Configuration folder holds many subfolders , each with a special purpose. For instance, the Objects folder contains files that tell Dreamweaver which icon buttons appear on the Insert bar and how each one works.

Depending on the type of extension you've downloadedcommand, object, behavior, or whateverthe extension manager stores the file (or files) required by the extension in one or more folders inside the Configuration folder. Because all of the files inside the Configuration folder are crucial to the way Dreamweaver works, don't delete the folder or any of the files inside it. In fact, because the Extension Manager automatically makes any required changes to the Configuration folder, there's no reason for you to even look inside it.

(The only exception is when you want to copy your keyboard shortcut set to another computer. See Section 19.1.2.)




Dreamweaver 8[c] The Missing Manual
Dreamweaver 8[c] The Missing Manual
ISBN: 596100566
EAN: N/A
Year: 2006
Pages: 233

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net