Highlight Menu bar in Share

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2014 07:47 AM
Hi,
I have a small requirement in Alfresco-Share development. I'm using 4.0.e community version. My requirement is , In Share I configured my custom menu called "i-search" in menu bar. Now I want it to be highlighted with color when user is in that Page. How can I achieve this without disturbing other Menus. Please see attachment for Reference.
Anybody , suggest please…
Regards,
D S Reddy
I have a small requirement in Alfresco-Share development. I'm using 4.0.e community version. My requirement is , In Share I configured my custom menu called "i-search" in menu bar. Now I want it to be highlighted with color when user is in that Page. How can I achieve this without disturbing other Menus. Please see attachment for Reference.
Anybody , suggest please…
Regards,
D S Reddy
Labels:
- Labels:
-
Archive
Menu.png
22 KB
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2014 02:37 AM
Hi Reddy,
Check out for header.js file - setAppItems method.
Hope this helps.
Check out for header.js file - setAppItems method.
Hope this helps.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2014 09:32 AM
Hi Reddy,
I hope the following js example will help you (it works in 4.1.5):
I hope the following js example will help you (it works in 4.1.5):
var currentPageElement = YAHOO.util.Selector.query('a[href='+window.location.pathname+']');if(currentPageElement.length>0) { var parentSpan = currentPageElement[0].parentElement; Dom.setStyle(parentSpan, "background-color","blue");}
