- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2016 09:09 AM
I am developing a site using CMS. I have created a site which uses a navigational menu. The menu used is a dropdown. I want to disable the redirect feature on the menu section.
On clicking any of the menu section, I have right now set the page to reload. However, I would like to disable the redirect feature and only have the menu section displaying the menu items, when I click on it.
Please help me with this.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2016 06:58 PM
Hi,
Didn't knew that you are targeting for touch devices!
You can actually achieve it by changing in UI Macro:
Goto: https://<instance-name>.service-now.com/nav_to.do?uri=sys_ui_macro.do?sys_id=1f4b69820a0a0b9230c67f5eeffc7450
All you need to do is, search for ["href="${jvar_link_url}"] and remove it.
Basically you are removing the HREF from the <a> clickable links, rest everything would work as is.
* You do not have to remove the links from menu section anymore.
Hope this help!
Mark thread as "Answered" if you are satisfied with an answer and let me know if you have any followup question for me.
-Manjul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2016 11:16 PM
Hi Biswajyoti,
If I understood you correctly, you want to actually disable the header items (Home/order things/Knowledge....) clicking but do want the drop down menu items to work as is?
if so its bit difficult because if you disable the headers <a>'s then it would not show the drop down items as the hover/mouseover event would not trigger.
There is small css trick you can use so that user would less likely click on its header item itself and they would drill down to header menu items.
if this works, you can try below css snippet.
div.cms_menu_dropdown_container a.cms_menu_dropdown_link:hover {
cursor: default;
background-image: none;
}
div.context_menu div[item_id="undefined"]:hover {
cursor: pointer;
}
Thanks,
Manjul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2016 01:57 AM
Thanks Manjul for the workaround, but why I wanted to resolve this is because while testing the website for a mobile view (on browser), I found that the user is not able to use the header menu, since it redirects to the page before the user can select a sub menu item.
Could you please let me know if I can stop this redirect?
I also have another problem regarding the scroll bar Scroll bar is not appearing for one page of a site in CMS , I have provided additional details there as you have asked. Could you please help me on that one as well?
Thanks a lot for your help so far.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2016 06:58 PM
Hi,
Didn't knew that you are targeting for touch devices!
You can actually achieve it by changing in UI Macro:
Goto: https://<instance-name>.service-now.com/nav_to.do?uri=sys_ui_macro.do?sys_id=1f4b69820a0a0b9230c67f5eeffc7450
All you need to do is, search for ["href="${jvar_link_url}"] and remove it.
Basically you are removing the HREF from the <a> clickable links, rest everything would work as is.
* You do not have to remove the links from menu section anymore.
Hope this help!
Mark thread as "Answered" if you are satisfied with an answer and let me know if you have any followup question for me.
-Manjul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2016 01:10 AM
Hello Manjul,
Thanks for the answer. This was indeed what I was looking for. Could you also please let me know whether you could help me with my other question Scroll bar is not appearing for one page of a site in CMS .
With regards,
Biswajyoti Dutta