Mega Menu Bar - Making Taxonomy Items Second

Johnny Stone
Tera Contributor

We have business need to make menu items first and taxonomy items second on the mega menu.
By default, Service-Now places the Taxonomy menus first.
Does anyone have experience doing this or suggestions?
Any help is appreciated!

7 REPLIES 7

Alexander17
Tera Guru

Hi,

Have you tried to look to the Employee Center menu. Maybe you can in the HTML codecan adjust the order of display?

Dan O Connor
ServiceNow Employee
ServiceNow Employee

Hi Johnny,

 

Just so I'm clear, when you say taxonomy menus first and items seconds? What do you mean by this? (There is a broken img link in your post)

 

In ESC your Taxonomies child topics generally appear first on the Mega Menu, think of them as the main topics. From there, you can have further child topics that then appear under their parent. 

 

DanOConnor_0-1664884913740.png

 

If you have child topics you want on the mega menu, you can simply just add them to the taxonomy as  Topic, and they appear directly on the mega menu. In my screenshow you can see an example of 'How do I?" which is just a topic with no children (and therefore no dropdown) 

 

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Unfortunately, this is just how it's been setup in the Widget. First the Mega menu, then Menu Items.

If you want to change this behavior... it would mean you have to clone and edit the widget (or actually multiple widgets). And obviously, cloning and editing widgets has consequences 😞

 

It would be a nice enhancement if this would be made more flexible or based on an order field.

 

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Mark Roethof
Tera Patron
Tera Patron

Just to add:

The Employee Center Header (sp_header_footer record), shows "<sp-widget widget="data.escNavigation"></sp-widget>", which is widget "employee-center-navigation". Opening this widget (which is read-only protected), reading the Body HTML template you will see that it's simply coded that first the full mega menu is handled, and after this the menu item.

So there's just no configuration option to achieve what you are after. If you want this, you need to clone and edit the employee-center-navigation widget, and you would need to edit the sp_header_footer record to use your new cloned and edited widget.

 

Kind regards,
Mark

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn