Configuration of the navigation bar

Build 1501 on 14/Nov/2017  This topic last edited on: 21/Mar/2016, at 18:52

A result widget in I4 is always associated to a “search context”. It can be displayed by clicking the name of the corresponding search context in the navigation bar on the left. Search contexts are configured with the elements I4Config/searchConfig/searchContexts/searchContext.

In the navigation bar, search contexts are organized by groups. Each group of search contexts is configured with an element I4Config/sideBars/sideBar. The name of the group is indicated by the attribute sideBar/@name, and each search context in the group is indicated by an element sideBar/searchContextRef. sideBar/searchContextRef/@name must match the name of a search context, i.e. the value of an attribute I4Config/searchContexts/searchContext/@name.

Example:

The following group in the navigation bar:

i4_a2

Is configured as follow in the I4 configuration file:

<I4Config

 xmlns:ssc="http://www.teradp.com/schemas/GN4/1/StandardSearchControls.xsd"

 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

 . . .

 <sideBars>

   <sideBar name="EditionTracking">

     <searchContextRef name="Pages" />

     <searchContextRef name="Editions" />

     <searchContextRef name="Zones" />

     <searchContextRef name="Sections" />

   </sideBar>

   . . .

Translations

The name of the group (i.e. sideBar/@name) as well as the name of the search contexts it contains (i.e. sideBar/searchContextRef/@name) are translated using StringScope.Default.