Make top level menu item "selected" like a tab...
hello
i'd like to configure my udm menu such that a class like "selected" can be used to allow a top level link to be "higlighted" when on a specific site page, sort of like an active tab... can this be done?... any advice on how this can be done? thanks |
Yep, this can be done with the "you are here" extension.
http://www.udm4.com/menu/modules/youarehere/ |
not sure how to configure
Hi,
I downloaded the .js and I am looking at the instructions, but I am not really clear... How to I configure the .js params? I can't make heads or tails of the instructions. Do you have a working code example I can look at? Also, into what file would I copy and paste the additional .CSS style code? Thanks Charles |
The first thing you will need to do is add the javascript to your pages.
Put this AFTER all your other udm body script calls. Code:
<!-- you are here extension --> Code:
var youAreHere = [ This is needed so the script knows that it's supposed to highlight / select the right menu item. Code:
'You are here: ', // add text to here-page title ["text"|"none"] Code:
'You are in this branch: ', // add text to here-branch title ["text"|"none"] Code:
'before', // where to add title text ["before"|"after"] Code:
'no', // open here-branch menus automatically ["yes"|"no"] Hope this answers any questions. |
All times are GMT. The time now is 05:04 AM. |
Powered by vBulletin® Version 3.0.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.