<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Ability to hide 3rd level categories from Mega Menu? in Employee Slate and Employee Center forum</title>
    <link>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2508951#M3509</link>
    <description>&lt;P&gt;You could achieve such still with CSS only, though that would be a UX mess.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if you really want to go that direction, then you need to clone/edit the widget according to your logic. Up to you if you want to go that road, if it's really worth it, and that you accept the consequences of this..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;BR /&gt;Mark&lt;/P&gt;</description>
    <pubDate>Fri, 17 Mar 2023 06:22:37 GMT</pubDate>
    <dc:creator>Mark Roethof</dc:creator>
    <dc:date>2023-03-17T06:22:37Z</dc:date>
    <item>
      <title>Ability to hide 3rd level categories from Mega Menu?</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2504455#M3409</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Wondering if anyone has been able to (or if it is even possible) to hide some 3rd level categories from the mega menu. We are transitioning to EC from a custom portal and have a robust taxonomy that we will be cutting down, but would prefer to only show the 3rd level categories for our main 2nd level categories (Pay, Benefits, Career).&amp;nbsp; If we add too many more 2nd/3rd level lists the page will just get too long and cluttered. Our other option is to just leave some of them without the 3rd level category but would like to filter them one more level if possible, without it showing on the mega menu.&lt;/P&gt;&lt;P&gt;I pulled a general screenshot from SN and added labels to show what I mean when I say 1st, 2nd, 3rd level.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KelliTomasino_0-1678758143586.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/246923i2768BE4521139FF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KelliTomasino_0-1678758143586.png" alt="KelliTomasino_0-1678758143586.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 01:43:22 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2504455#M3409</guid>
      <dc:creator>Kelli Tomasino</dc:creator>
      <dc:date>2023-03-14T01:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to hide 3rd level categories from Mega Menu?</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2505560#M3421</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/62271"&gt;@Kelli Tomasino&lt;/a&gt;&amp;nbsp;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes u can hide&amp;nbsp;&lt;SPAN&gt;hide the topics on the 3rd level&amp;nbsp;of the Employee Center mega menu.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Before removing connected content for Hardware subtopic 'computers' was there:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Khushbookabra_2-1678814093755.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/247210i63F43191A5570E0B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Khushbookabra_2-1678814093755.png" alt="Khushbookabra_2-1678814093755.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For this u need to remove connected content of that child topic.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Khushbookabra_0-1678814018626.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/247207i146B680ADF535D74/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Khushbookabra_0-1678814018626.png" alt="Khushbookabra_0-1678814018626.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After removing connected content logout &amp;amp; then login back to the instance. (Pls note sometime it will take few hours to reflect the changes in portal).&lt;/P&gt;&lt;P&gt;After removing subtopic result&amp;nbsp; is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Khushbookabra_1-1678814018762.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/247208iB52B13BDA7B85BCB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Khushbookabra_1-1678814018762.png" alt="Khushbookabra_1-1678814018762.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similarly, u can do it for ur Pay and Time.&lt;/P&gt;&lt;P&gt;If there will be one connected content then it will be visible to you. So if you don't want to show it in mega menu then please remove its connected contents.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/62271"&gt;@Kelli Tomasino&lt;/a&gt;&amp;nbsp;, please mark my answer as accepted solution and helpful. If it is works for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 17:22:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2505560#M3421</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2023-03-14T17:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to hide 3rd level categories from Mega Menu?</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2505710#M3425</link>
      <description>&lt;P&gt;Interesting question &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/62271"&gt;@Kelli Tomasino&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;We are struggling to design easy access to our services through the EC mega menu right now.&lt;BR /&gt;I think we hope to achieve the same as you Kelli, that is too not show all "third level" topics on the mega menu to make it less cluttered for our audience.&lt;/P&gt;&lt;P&gt;But at the same time we want to provide our audience with all the services we have available.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the example the "third level" topic Computers is no longer shown in the mega menu, but we (and I think also Kelli) would like to show the Computers topic in the all items display when you click on Hardware.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to illustrate our wish in the screenshots below.&lt;/P&gt;&lt;P&gt;Would this be possible (without too much customisation)?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 19:02:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2505710#M3425</guid>
      <dc:creator>Johan van den H</dc:creator>
      <dc:date>2023-03-14T19:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to hide 3rd level categories from Mega Menu?</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2508121#M3486</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Yes - this is exactly what we are looking for! We want our employees to be able to get to the 3rd level categories once they are within the 2nd level topic page but don't need them all to be shown on the mega menu.&amp;nbsp;@Community Alums&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;does your solution allow this to happen or is it something we need to customize?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 12:26:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2508121#M3486</guid>
      <dc:creator>Kelli Tomasino</dc:creator>
      <dc:date>2023-03-16T12:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to hide 3rd level categories from Mega Menu?</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2508443#M3497</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Interesting question. Haven't seen an out-of-the-box configuration option for this. Avoiding cloning/editing widgets, you could hide the 3rd level using CSS, though this doesn't look really good from UX perspective. Though maybe it does suite your case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-03-16 170708.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/247959i909256B5BFBE1731/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-03-16 170708.png" alt="Screenshot 2023-03-16 170708.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;BR /&gt;Mark&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 16:08:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2508443#M3497</guid>
      <dc:creator>Mark Roethof</dc:creator>
      <dc:date>2023-03-16T16:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to hide 3rd level categories from Mega Menu?</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2508537#M3498</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/62271"&gt;@Kelli Tomasino&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/384560"&gt;@Johan van den H&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;No my solution will not allow this to happen, only it helps to hide from mega menu.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you want it will visible inside sub topic, u need to write ur code in OOTB widget "Sub-Topics" . As it pick data dynamically from mega menu, pls refer the ss of the widget:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Khushbookabra_0-1678989056092.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/247986iE0EE0C71F6E2CC83/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Khushbookabra_0-1678989056092.png" alt="Khushbookabra_0-1678989056092.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 17:51:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2508537#M3498</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2023-03-16T17:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to hide 3rd level categories from Mega Menu?</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2508630#M3504</link>
      <description>&lt;P&gt;So in your example we would want level 3 to show under Hardware, Software and Network but to not have them show for the other 3 (while still having the 3rd level once you click into the 2nd level topic). Hopefully that makes sense!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 19:51:05 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2508630#M3504</guid>
      <dc:creator>Kelli Tomasino</dc:creator>
      <dc:date>2023-03-16T19:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to hide 3rd level categories from Mega Menu?</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2508931#M3508</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/62271"&gt;@Kelli Tomasino&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/384560"&gt;@Johan van den H&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;U can hide the 3rd level child topics from mega menu using CSS as&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/201738"&gt;@Mark Roethof&lt;/a&gt;&amp;nbsp;mentioned. And u r able to see the sub topic (as ur requirement).&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 06:01:44 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2508931#M3508</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2023-03-17T06:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to hide 3rd level categories from Mega Menu?</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2508951#M3509</link>
      <description>&lt;P&gt;You could achieve such still with CSS only, though that would be a UX mess.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if you really want to go that direction, then you need to clone/edit the widget according to your logic. Up to you if you want to go that road, if it's really worth it, and that you accept the consequences of this..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;BR /&gt;Mark&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 06:22:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2508951#M3509</guid>
      <dc:creator>Mark Roethof</dc:creator>
      <dc:date>2023-03-17T06:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to hide 3rd level categories from Mega Menu?</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2509706#M3529</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/62271"&gt;@Kelli Tomasino&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;We do not have any OOTB configuration to achieve this, However you can navigate to the "Employee center Navigation widget" and In server script you would be having a code "&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;megaMenuTopics = portalTaxonomy.getTopics(&lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;, 2&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;SPAN&gt;);"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;change the middle parameter from 2 to 1. Log out and log in again. You would be able to see the topics at 2 level.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;"&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 16:48:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2509706#M3529</guid>
      <dc:creator>Ankit Kumar3</dc:creator>
      <dc:date>2023-03-17T16:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to hide 3rd level categories from Mega Menu?</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2515433#M3605</link>
      <description>&lt;P&gt;Content Taxonomy &amp;gt; taxonomies &amp;gt; select the appropriate taxonomy (probably Employee) and disable it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 19:58:44 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2515433#M3605</guid>
      <dc:creator>Marry Vieira</dc:creator>
      <dc:date>2023-03-23T19:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to hide 3rd level categories from Mega Menu?</title>
      <link>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2549563#M3983</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/62271"&gt;@Kelli Tomasino&lt;/a&gt;&amp;nbsp;There is a way to achieve this without cloning the OOTB Widget. You have to create a UI-Script in the global scope with the following code:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;(function() {

    function waitForElement(selector, timeout, interval) {
        return new Promise(function(resolve, reject) {
            var elapsedTime = 0;
            var checkForElement = function() {
                var element = document.querySelector(selector);
                if (element) {
                    resolve(element);
                } else if (elapsedTime &amp;gt;= timeout) {
                    reject(new Error("waitForElement: Timeout exceeded while waiting for element with selector &amp;gt;&amp;gt; " + selector));
                } else {
                    elapsedTime += interval;
                    setTimeout(checkForElement, interval);
                }
            };
            checkForElement();
        });
    }

    waitForElement(".v045301ddeb503010ed7966d647522844", 30000, 100).then(function(element) {
        var ecnavScope = angular.element(element).scope();
        if (!ecnavScope) return;

        var menuItemIds = new Set(ecnavScope.data.menuItems.map(function(item) {
            return item.sys_id;
        }));
        for (var key in ecnavScope.data.menuItemToChildrenMap) {
            if (!menuItemIds.has(key)) { //key == sys_id of a topic, you can exclude some topics from being removed here
                delete ecnavScope.data.menuItemToChildrenMap[key];
            }
        }
    });
})();&lt;/LI-CODE&gt;&lt;P&gt;This will hide all 3rd Level Topics from the Menu if you create a JS Include Dependency for that UI-Script and add that to your EC Portal Theme. If don't want to hide all 3rd Level Topics you can modify the script exclude certain sys_ids (check the comment in the code). You could go even further and create a custom field on the topic table and make a rest call in this script to only hide the topics that have the custom field set to true.&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 22:47:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/employee-slate-and-employee/ability-to-hide-3rd-level-categories-from-mega-menu/m-p/2549563#M3983</guid>
      <dc:creator>mak1A4</dc:creator>
      <dc:date>2023-05-01T22:47:13Z</dc:date>
    </item>
  </channel>
</rss>

