| Class: Dreamweaver Libraries |
|
Working with Dreamweaver Libraries is one of the fastest ways to maintain a website and Fireworks gives you the ability to create them directly from it. Something that goes unnoticed, is the fact that you can use Dreamweaver Libraries even if you don't want to use Dreamweaver but you can use Server Side Includes (SSI) on the server that your pages reside. But before we go any further, let see what a Dreamweaver Library really is. What is a Dreamweaver Library file? How does it work? What should be in your Library? What Fireworks has to do with all that? To export as a Library item, select Export as usual, and provide information about the images that are about to be exported (such as location, basename) as you would normally. At the lower part of the panel where you can specify your HTML settings, select "Dreamweaver 3 Library". You might be prompted to locate a directory called "Library" which is the location that Library items have to be saved (Dreamweaver requires them there, so Fireworks saves them there). If you don't have that directory in your site's structure, create it (and make sure that you name it "Library"), and finish the Export procedure. We can see now that Fireworks placed the images in the directory we specified, and the Library item in the "Library" directory. Open the Library item in a text editor, or view the source from Dreamweaver. You can see that the path to the images that the library item contains, is relative to the position of the images in the site structure. When you import the Library item in any page using Dreamweaver, the relative path to the images change but Dreamweaver takes care of that so you don't have to worry about it. All you need to do is to place the Library item where it's needed. Now if you need to make any changes in the images your Library item contains, make them in Fireworks and export as the same Dreamweaver Library again. That updates the chunk of HTML code the Library item contains. If you work with SSI, that would be enough. If you work with Dreamweaver, you have to update the pages the library item appears. That is done in a snap, like so:
Use Library items, they can be timesavers in managing large sites and/or chunks of code that change frequently. |
| List all |