I have a portfolio section of my site with a side-navigation. On the side navigation, I have it set to automatically drop-down a group section and highlight the item of the current page. Here is a link to see what I’m talking about: http://www.premieravdallas.com/portfolio/mcmillanjames.php
I was doing all of this with HTML/CSS, but I recently moved my side navigation to a separate PHP file to make it easier to add additional portfolio items. I wanted to keep the “drop-down” and “highlight” functions, so I added some PHP codes. Can someone take a look and tell me if it is correct. It is working, but I don’t know if it is the correct way to do it.
In my “sidecontent_left.php” file:
[php]
- Restaurants [/php]
The the code in my Portfolio pages:
[php]<?php
$selecteditem = “aftershocklondon”;
$selectedgroup = “retail”;
include “…/global/php/sidecontent_left.php”;
?>
[/php]
thanks in advance**