Please excuse my PHP-newbness if this sounds off the wall and stupid...
I'm currently reworking my website to use PHP includes to break down the site into a main page ("index.php") and then have a left pane for navigation (lbar.php), footer bar with contact/copyright info (lbar.php). I have some code set up so that when you surf to the main page you get rbar.php in the right pane, which is news, and all links in the left pane (except for the one to the forums) direct you to index.php?page=foo, so that rbar.php is replaced with foo.php.
Ok, so that gets you from the main page to the first level of subpages (tech articles, projects, etc). What I'm curious about is whether or not it would be possible to have some sort of include within an include, so that one could keep a heading in the right pane ("projects" for example) and then clicking a link underneath would keep the projects heading, but fill in a second level subpage (a technical article you clicked on in the projects page).
Is this possible, or is it more trouble than its worth?
I'm currently reworking my website to use PHP includes to break down the site into a main page ("index.php") and then have a left pane for navigation (lbar.php), footer bar with contact/copyright info (lbar.php). I have some code set up so that when you surf to the main page you get rbar.php in the right pane, which is news, and all links in the left pane (except for the one to the forums) direct you to index.php?page=foo, so that rbar.php is replaced with foo.php.
Ok, so that gets you from the main page to the first level of subpages (tech articles, projects, etc). What I'm curious about is whether or not it would be possible to have some sort of include within an include, so that one could keep a heading in the right pane ("projects" for example) and then clicking a link underneath would keep the projects heading, but fill in a second level subpage (a technical article you clicked on in the projects page).
Is this possible, or is it more trouble than its worth?