Hi all,
I need some advice on how to best implement dynamic site navigation.
Site begins @ index.php and contains 5 interior sections (Services, Hosting, Clients, Contact, About). The links on index.php to these interior pages (or sections of pages) will contain "...php?id=2", etc. in order to pass variable value on. My plan was to use this passed value to query tblPages in the resulting page, return PageID, PageName, PageTitle, HeadID, StyleID, BodyID, ContentID, FooterID, etc., and build the page. (Fyi, I am basing the above on the "One Page Site" ex. in Wrox book "Alex Homer's Professional ASP 3.0 Web Techniques", pg. 495)
My goal is to have the site generate all of its pages on the fly (using dynamic, semi dynamic, SSIs, etc. methods, whatever is appropriate). The nav system, in particular, uses images so there are "up" and "over" state buttons and accompanying JavaScript.
My questions are as follows:
I am not sure if it is better to have the main page's 5 interior links hard coded (services.php?id=2, hosting.php?id=3, etc.) or use one name to avoid hard code (display.php?id=2), what is your advice/opinion?
Should the site sections reside in their own directories or not?
Can anyone suggest a good tutorial or article where I can find current information on how best to create a system like this?
Thx in advance for your time,
Doug Olsen