Forum Moderators: phranque
I'm not too keen on using dynamic urls unless I can master mod-rewrite. Easily doable? I could then use a ur like .com/1/index.php or .com/2/contact.php
any further ideas would be gratefully read and considered.
The site is for a school so simple (in all matters) = good for the users of all ages.
______________________________
¦ one ¦ two ¦#three#¦ four ¦ five ¦
sub: a b c d e #f# g h
so here there are five tabs. At the moment I am in section 'three' and in the sub menu of section 'three' I am on page 'f'. I want tab three to remain highlighted for all pages I visit (a-h) as well as the index page for that tab.
Hope this makes it more clear.
Im after the simplest way to have the correct tab highlighted for all pages of that section.
I used php to find the current directory I was in:
.co.uk/home/index.php OR
.co.uk/games/index.php
split the url using several commands and ended up with just 'games' or 'home' then used these to say:
if home then include this bit of menu
if games then include this bit of menu
works a treat and even better for working it out myself