cmarenburg — 2012-09-27T21:05:46-04:00 — #1
So i am working with a site template. And the template has a class for the navigation to change the colour depending on the page (ie, change from blue to green).
However i am using this as the site template so having the active class is no good. I know i can do this with PHP. But i don't know how i should apprroch it.
Thanks in advance!! i can figure out the if i just need some guidence on how to get the current page.
ralphm — 2012-09-28T00:30:16-04:00 — #2
md5hash — 2012-09-28T01:53:04-04:00 — #3
try with some condition for getting css class!
cmarenburg — 2012-09-28T06:29:26-04:00 — #4
Hey Ralph.m That's execatley what i was looking for! And i never though of building menus in php before with arrays! This has got me thinking <light bulb moment!>
ralphm — 2012-09-28T09:42:04-04:00 — #5
Yes, I found that post very enlightening, too, so I bookmarked it. Glad you find it useful.