How to edit the main menu?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2016 06:51 AM
Hi,
I'm really new to serviceportal and it's editing options.
I've explored quite a bit and discovered a lot of posibilities while playing.
One question that I can't make happen tho is customization of the main menu?
I can't seem to clone the "Header Menu" widget or an instance of it to edit the look and feel. The data table is set to sp_instance_menu but it's instance become sp_instance on update.
Is there something obvious I'm doing wrong?
The answer might be that I shouldn't clone or change the menu, but it's for pure playing around and look for opportunities at the moment.
Best Regards,
Viktor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2016 08:31 AM
Hi Viktor,
It seems as though you are attempting to change the CSS of the header menu. Part of the reason that you can not clone the widget is that stock header is not a sp_widget instead it lives on the sp_header_footer table. How I customized the header I believe was by copying and pasting the code into a new header and then just replaced that header within the reference of the main menu within the sp_portal. Once you have the sp_header_footer correctly placed you can change the CSS with the class of ".navbar". If you were more wondering how to add items to the menu I am sure that you see the related list within the sp_instance_menu that holds reference to the links within what lives on the menu. You can create your own menu items on the sp_rectangle_menu_item table and there are a types filter that allows you to change what type of item it is. I hope this helps, please let me know if I can provide any more assistance.
Best Regards,
Philip Engles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2016 12:20 AM
Hi,
The header menu (the overall header) i've already modified if that's what you mean. My problem lies within the menu itself, ie the link generation together with the sp loadingindicator.
The header that loads the menu component is grabbing the menu from sp_rectangle_menu and then loads the component in to the header. I want to modify the html and css inside that menu component. If that makes sense.
I.e I want to clone and modify the widgets found under the section "Menus" in the service-now sidebar. I managed to clone the menu, but upon creating an instance of it, it creates as a sp_instance even if it's data table is set to sp_instance_menu
I'm very grateful that you try to push me in the right direction!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2016 01:08 AM
I tried creating a whole new widget with sp_instance_menu table. But upon instanciating this widget it still creates as a sp_instance and hence do not show up as a choice in "main menu" reference 😕
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2016 07:15 AM
Hi Vicktor,
From what I have read; you want to create your new header on the sp_header_footer table instead of on the sp_instance_menu table. Then go and leave the reference to sp_rectangle_menu blank inside of your sp_portal. Create a new sp_theme and in your new theme you can reference header and footer which is looking at the sp_header_footer. Since you are creating a new menu the sp_theme seems to be what you were missing. Hope this helped!
Best,
Philip E.