Antonia has attended:
Dreamweaver 8 Introduction course
Linking pages
what is the easiest way to link the pages when you are creating 100+ pages; by using folders or is there another way?
RE: linking pages - PHP script link to all files in a directory
Antonia,
In the past, I have written a bit of PHP script to link to all pages in a folder. You will need to have PHP installed on your web server or hosting environment for this code to work. Alternatively, if your hosting environment hosts ASP pages, you may be able to locate similar code written in ASP.
I'm not sure of any way Dreamweaver can create a site-map for you. You could try searching google for dreamweaver create sitemap but most of the sites found seem to only create a graphical sitemap or an XML sitemap for 'Google sitemaps'.
<?php
function list_dir_contents ($the_path) {
global $DOCUMENT_ROOT;
// opens the directory, and creates a data source handle
$handle = dir($DOCUMENT_ROOT.$the_path);
// go through each file, assigning filename to $file variable
while ($file = $handle->read()) {
// exclude the two . and .. files
if (($file != ".") and ($file != "..")) {
print "n<br />";
print "<a href="/$the_path/$file">$file</a>";
}
}
}
// eg. this will list the files in the 'newsletter' folder
// (assuming one exists in your web site root folder)
list_dir_contents("newsletter");
?>
Hope this helps,
Regards, Rich