Library item: out of date?
Library item: out of date?
Out of context: Reply #8
- Started
- Last post
- 15 Responses
- moth0
"How do you get the selected / current nav item to display if you use an include?"
In Dancers case, I don't think the site would be set up to do this in an effective fashion.
However, what I would do, and it's kind of painful (but this is a static site), I would use a function to look at the name of the current page and change a menu style accordingly;
if ($myPage == 'location.php') {
echo 'style=\"selected\"';
}