Weird i know but as per the clients request i need to do the following:
if node being view is in a directory like this /panelist/panelist-name
or this
/moderator/moderator-name
i need to set the a menu link in the main menu to active and also a sidebar menu item too.
now i know how to do the javascript part but i don't know to determine if /panelist/ or /moderator/ are in the URL, and also where i would put such code? i guess in template.php?
i tried doing in Rules but it didn't seem possible (still kind of new though!)
pseudo code would be if node being viewed contains 'panelist' or 'moderator' in URL then echo out some javacript or set some menu item class to 'active'
much thanks!