<h2>Configure a portal header menu</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2023" /><meta name="DC.rights.owner" content="(C) Copyright 2023" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="task" /><meta name="DC.title" content="Configure a portal header menu" /><meta name="abstract" content="Define the look and behavior of the portal header menu and assign menu items to appear in the header. The header menu is one of the primary navigation controls for Service Portal users." /><meta name="description" content="Define the look and behavior of the portal header menu and assign menu items to appear in the header. The header menu is one of the primary navigation controls for Service Portal users." /><meta name="DC.subject" content="Service Portal header menu, Service Portal headers and footers, Service portal header menu" /><meta name="keywords" content="Service Portal header menu, Service Portal headers and footers, Service portal header menu" /><meta name="DC.relation" scheme="URI" content="../../../build/service-portal/task/create-a-portal.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/navigation-and-ui/concept/c_NavigationAndTheUserInterface.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/general/concept/configure-uis-and-portals.html" /><meta name="DC.relation" scheme="URI" content="../../../build/service-portal/concept/c_ServicePortal.html" /><meta name="DC.relation" scheme="URI" content="../../../build/service-portal/concept/configuring-service-portal.html" /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="configure-header-menu" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>Configure a portal header menu</title></head><body> <div class="nested0" id="configure-header-menu"> <h1 class="title topictitle1" id="ariaid-title1">Configure a portal header menu</h1> <div class="body taskbody"><p class="shortdesc">Define the look and behavior of the portal header menu and assign menu items to appear in the header. The header menu is one of the primary navigation controls for <span class="ph">Service Portal</span> users.</p> <div class="section prereq p" id="configure-header-menu__prereq_tfc_gtr_nsb"> <p class="p">Role required: admin</p> </div> <div class="section context" id="configure-header-menu__context_a1l_3tr_tz"> <p class="p">Configuring a portal header with a menu involves several steps.</p> </div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Create a header and add it to a theme.</span> <div class="itemgroup info">Until you add a theme with a header to a portal, the header menu does not display. </div> </li><li class="li step stepexpand"> <span class="ph cmd">Create a main menu with menu items and assign it to the portal.</span> <div class="itemgroup info">The main menu record is where you assign which navigation options appear in the header. For example, you can add a menu item that links to another page within your portal, such as the service catalog.</div> </li></ol> <div class="section result" id="configure-header-menu__result_rz5_gnx_t1b"> <p class="p">The main menu and header form a header menu when associated with a theme and a portal.</p> <p class="p"><img class="image" id="configure-header-menu__image_uwr_pnx_t1b" src="../image/HeaderMenu.png" alt="Gif showing how the header menu and the stock header combine to form the portal menu" /></p> </div> </div> <div class="related-links"> <div class="familylinks"> <div class="parentlink"><strong>Parent Topic:</strong> <a class="link" href="../../../build/service-portal/task/create-a-portal.html" title="Create a portal for users to browse company resources, discover articles, and get help.">Create a portal</a></div> </div> </div><div class="topic task nested1" id="add-header-footer"> <h2 class="title topictitle2" id="ariaid-title2">Add a header or footer to a portal</h2> <div class="body taskbody"><p class="shortdesc">Use the theme to add a header or footer to your portal.</p> <div class="section prereq p" id="add-header-footer__prereq_v4z_p2f_nsb"> <p class="p">Role required: (admin or none)</p> </div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Navigate to <span class="ph menucascade"><span class="ph uicontrol">All</span> > <span class="ph uicontrol">Service Portal</span> > <span class="ph uicontrol">Service Portal Configuration</span></span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph menucascade"><span class="ph uicontrol">Portal Tables</span> > <span class="ph uicontrol">Themes</span></span> and then select the theme you want to add the header or footer to.</span> </li><li class="li step stepexpand"> <span class="ph cmd">In the header or footer field, select the header or footer you want to use for your portal.</span> <div class="itemgroup info">If you are just getting started, you can reuse the base system Stock Header or Sample Footer widgets.</div> </li><li class="li step stepexpand"><strong>Optional: </strong> <span class="ph cmd">Select <span class="ph uicontrol">Fixed Header</span> or <span class="ph uicontrol">Fixed Footer</span> to lock the header or footer in one place so when users scroll up or down they remain in the same location on the page.</span> </li><li class="li step stepexpand"> <span class="ph cmd">To configure the appearance of the header, in the Service Portal configuration page, open the <span class="ph">Branding Editor</span>. Under the <span class="ph uicontrol">Theme Colors</span> tab, use the color selectors in the Navbar section to control the colors in the header.</span> </li></ol> </div> </div> <div class="topic task nested1" id="create-portal-menu"> <h2 class="title topictitle2" id="ariaid-title3">Create a portal header menu</h2> <div class="body taskbody"><p class="shortdesc">Create a menu with menu items to display in the header of a portal.</p> <div class="section prereq p" id="create-portal-menu__prereq_v4z_p2f_nsb"> <p class="p">Role required: (admin or none)</p> </div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">From the Service Portal configuration page (<span class="ph menucascade"><span class="ph uicontrol">Service Portal</span> > <span class="ph uicontrol">Service Portal Configuration</span></span>), navigate to <span class="ph menucascade"><span class="ph uicontrol">Portal Tables</span> > <span class="ph uicontrol">Instance with Menu</span></span> and select <span class="ph uicontrol">New</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Complete the fields in the menu form.</span> <div class="itemgroup info"> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="create-portal-menu__table_otc_4nx_tz" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 1. </span>Menu fields</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d299658e336">Field</th><th class="entry cellrowborder" style="vertical-align:top;" id="d299658e339">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d299658e336 ">Title</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d299658e339 ">Name of the header menu. You need to know this when you associate the menu with your portal.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d299658e336 ">Additional options, JSON format</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d299658e339 ">Advanced configuration options. For example, use this field to enable the shopping cart in the header menu with the following code:<pre class="pre codeblock"><code>{ "enable_cart": { "displayValue": "true", "value": true } }</code></pre></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d299658e336 ">Application</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d299658e339 ">The record scope. The header menu record and the source table must have the same application scope.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d299658e336 ">Widget</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d299658e339 ">The widget that the header menu is based on. Select a menu-type widget from the list. For example, the header menu widget that is included as a base system widget.</td></tr></tbody></table> </div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Save the form, and then select <span class="ph uicontrol">Menu Items</span> from the related lists.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">New</span> and complete the menu item form.</span> <div class="itemgroup info"> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="create-portal-menu__table_sgf_yyp_2z" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 2. </span>Menu item fields</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry nocellnorowborder" style="vertical-align:top;" id="d299658e423">Field</th><th class="entry cell-norowborder" style="vertical-align:top;" id="d299658e426">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry nocellnorowborder" style="vertical-align:top;" headers="d299658e423 ">Label</td><td class="entry cell-norowborder" style="vertical-align:top;" headers="d299658e426 ">Name that appears for the item in the menu</td></tr><tr class="row"><td class="entry nocellnorowborder" style="vertical-align:top;" headers="d299658e423 ">Parent menu</td><td class="entry cell-norowborder" style="vertical-align:top;" headers="d299658e426 ">This field should already contain the name of the menu you are adding items to. You can change the value as needed to other menus</td></tr><tr class="row"><td class="entry nocellnorowborder" style="vertical-align:top;" headers="d299658e423 ">Parent menu item</td><td class="entry cell-norowborder" style="vertical-align:top;" headers="d299658e426 ">Use this field to nest menu items within other menu items</td></tr><tr class="row"><td class="entry nocellnorowborder" style="vertical-align:top;" headers="d299658e423 ">Order</td><td class="entry cell-norowborder" style="vertical-align:top;" headers="d299658e426 ">Value that determines where the item appears in the menu in relation to other menu items</td></tr><tr class="row"><td class="entry nocellnorowborder" style="vertical-align:top;" headers="d299658e423 ">Type</td><td class="entry cell-norowborder" style="vertical-align:top;" headers="d299658e426 ">The kind of page the item links to. Form fields vary depending on the option that you select from this list. Choose from:<ul class="ul" id="create-portal-menu__ul_xl2_3rq_xjb"><li class="li">Page: Link to another page in the <span class="ph">Service Portal</span>.</li><li class="li">URL: Link to an external website. To have the URL open on a new browser tab or window, enter _blank in the <span class="ph uicontrol">URL target</span> field.</li><li class="li"><span class="ph">Service Catalog</span>: Link to the <span class="ph">Service Catalog</span>.</li><li class="li">Catalog Category: Link to a specific catalog category within the <span class="ph">Service Catalog</span>.</li><li class="li">Catalog Item: Link to a specific catalog item.</li><li class="li">Knowledge Base: Link to the knowledge base that you previously configured as the portal's default knowledge base.</li><li class="li">KB Topic: Link to a KB topic page.</li><li class="li">KB Article: Link to a KB article by number.</li><li class="li">KB Category: Link to a specific KB category within the knowledge base.</li><li class="li">Filtered List: Set conditions to determine which page to link to.</li><li class="li">Scripted List: Enter a script to determine which page to link to.</li></ul> </td></tr><tr class="row"><td class="entry nocellnorowborder" style="vertical-align:top;" headers="d299658e423 ">Page</td><td class="entry cell-norowborder" style="vertical-align:top;" headers="d299658e426 ">Name of the portal page the item links to. This option is available if you select <span class="ph uicontrol">Page</span> as the menu item type.</td></tr><tr class="row"><td class="entry nocellnorowborder" style="vertical-align:top;" headers="d299658e423 ">Condition</td><td class="entry cell-norowborder" style="vertical-align:top;" headers="d299658e426 ">Determines what conditions are required for menu items to show in the header. For example, the condition <code class="ph codeph">gs.hasRole("sp_admin")</code> restricts access to menu items to users with the sp_admin role. Hide a menu item by setting this value to <span class="ph uicontrol">false</span>. For more information on what conditions to use in the <span class="ph uicontrol">Condition</span> field, see <span class="xref">Create a UI Action</span> .</td></tr><tr class="row"><td class="entry row-nocellborder" style="vertical-align:top;" headers="d299658e423 ">Glyph</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d299658e426 ">Icon that appears beside the menu item</td></tr></tbody></table> </div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Submit</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">After you create a menu and menu items, add the menu to a portal.</span> <ol type="a" class="ol substeps" id="create-portal-menu__substeps_adv_bf5_51b"><li class="li substep"> <span class="ph cmd">Navigate to <span class="ph menucascade"><span class="ph uicontrol">Service Portal</span> > <span class="ph uicontrol">Portals</span></span>, then open the portal you want to add a menu to.</span> </li><li class="li substep"> <span class="ph cmd">From the <span class="ph uicontrol">Main menu</span> field, select the reference lookup icon, then select the appropriate menu by name.</span> </li><li class="li substep"> <span class="ph cmd">Select <span class="ph uicontrol">Save</span>.</span> </li></ol> </li></ol> <div class="section postreq" id="create-portal-menu__postreq_vp2_wxx_tz"> <p class="p">Associate the menu you created with a portal, then create a header with a theme for your menu.</p> </div> </div> </div> <div class="topic task nested1" id="enable-lang-selector-widget"> <h2 class="title topictitle2" id="ariaid-title4">Enable language selector widget</h2> <div class="body taskbody"><p class="shortdesc">Enable the language selector widget to enable unauthenticated users to select their language preferences.</p> <div class="section prereq p"> <div class="p">Make sure that the following plugins are installed:<ul class="ul" id="enable-lang-selector-widget__ul_omq_kmy_d5b"><li class="li">Service Portal plugin</li><li class="li">com.glide.i18n.core plug-in</li></ul> </div> <p class="p">Role required: admin</p> </div> <div class="section context"> <p class="p">The language selector widget displays a list of languages that the user can choose from. The widget on the portal shows the current language selection of the user. If region grouping is enabled, languages are displayed according to the configured region groups. For more information about grouping languages, see <span class="xref">Map languages and regions with the language selector widget</span>.</p> <p class="p">To add the sp-lang-selector widget to your custom portal, perform the following steps.</p> </div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Add the sp-lang-selector widget to your preferred portal header.</span> <div class="itemgroup info">For more information on how to create a widget, see <a class="xref" href="create-new-widget.html" title="Create a new widget to build a custom widget from scratch.">Create a new widget</a>.<p class="p">The widget is already added to the Customer Service Portal and the stock header by default.</p> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Make the selector widget visible by adding the portal sys_id to the <span class="keyword parmname">glide.sp.portals.language_selector_enabled</span> property.</span> <div class="itemgroup info">For more information on system properties, see <span class="xref"></span>.</div> </li></ol> <div class="section result" id="enable-lang-selector-widget__result_dkv_pkv_5tb"> <p class="p">The language selector widget is added to the portal header. The widget is visible to both authenticated and unauthenticated users.</p> </div> </div> </div> </div> </body></html></div>