Hi Matt,
Yes, that would be a reasonable way to do it, but I don't quite get what you mean by "there is no way of adding code to a list produced when using PHP".
I would normally either have an array of nav items, or get them from a MySQL database, then iterate through the list and output an <li> for each, eg:
PHP Code:
$navitems = array('filename1.php' => 'Page Name 1', 'filename2.php' => 'Page Name 2');
echo "<ul>\n";
foreach ($navitems AS $k => $v) {
echo '<li><a href="' . $k . '" title="' . $v . '">' . $v . "</a></li>\n";
}
echo "</ul>\n";
That's a simplified example but you get the idea. As to whether it's the common way to do it, I don't know but it's the way I do it
Bookmarks