Site Map and Link Checker


One of the most common — and often most tedious — tasks in site management is keeping links updated and changing out-of-date URLs. Dreamweaver has long supplied many Find/Replace options for searching entire sites of HTML pages and changing one link to become a different link, but when your site consists of both Flash and HTML content, in the past, it has always been a manual process to change all the links within the Flash movies.

Since Dreamweaver MX, this is no longer a limitation. You can change links even in Flash movies (.swf). The Files panel (Window ð Files, or F8) includes drop-down menus for choosing a site that you want to view and for setting a view style. In Dreamweaver 8, there is now tabbed access to the Assets panel and a new Code snippets panel. As shown in Figure 38-26, you can use a button on the top-right edge of the Files panel to expand the Files panel. Clicking this button ungroups the Files panel from Assets and Snippets (which remain open in the background), and loads some additional view options into the Files panel.

image from book
Figure 38-26: By default, the Files panel is grouped with the Assets and Snippets panel, but with the Expand option, it is possible to ungroup the Files panel and load additional view options.

The view shown in Figure 38-27 is set by choosing Map and Files from the Site Map drop-down menu (available from the site map icon at the top of the Files panel).

image from book
Figure 38-27: The Files panel Map and Files view enables you to see a hierarchical view of the pages and links in your site, including links from Flash movies — right-clicking in the Map view invokes a contextual menu with options for working with links.

To be able to see a Site Map diagram view (as shown in Figure 38-27), you must have a page defined as your Home page in your site definition and also be able to view any dependent files. You can specify this in the Site Map Layout section of the Site Definition dialog box as shown in Figure 38-28. To load the Site Definition dialog box, choose Site ð Manage Sites from the application menu (or from the Files panel options menu), and then click the Edit button in the Edit sites dialog box.

image from book
Figure 38-28: You can select a Home page and choose Display dependent files in the Site Map Layout section of the Site Definition dialog box.

In the Site Map view of the Files panel, you can click the page icons to drag pages into different relative positions and even change links by clicking and dragging a link icon from one page to another page.

You can check all the links in the site, including links within Flash movies, by right-clicking in the Site Map area of the Files panel and choosing Check Links from the contextual menu. You can also choose Site ð Check Links Sitewide from the application menu, or use the Ctrl+F8 or z+F8 shortcut keys. You can check the entire site or just a subset of folders.

The results of this check appear in the Link Checker tab of the Results panel (refer to Figure 38-29). You can then view them by category — broken links, external links, and orphaned files — and also change the links from this window simply by typing over the link URLs.

image from book
Figure 38-29: The Link Checker tab in the Results panel enables you to view and change the links within your site, even within Flash movie files (.swf).




Macromedia Flash 8 Bible
Macromedia Flash8 Bible
ISBN: 0471746762
EAN: 2147483647
Year: 2006
Pages: 395

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