Tab bar
The tab bar is a row of up to five items fixed to the bottom edge of the screen on phones, and on tablets where so set. It is never shown on a computer. Each tab bar is a document of its own: it is edited in the builder, saved as a draft, published, and assigned to the pages and sales channels it belongs to. One bar is shown per page.
The editing, the list, the assignment and the import and export work as for every other Nova document and are described in Documents and Assignment. This page covers what is specific to the tab bar.
Screens of the group
Section titled “Screens of the group”Content → Nova → Extras → Tab bar contains three screens:
| Screen | Purpose |
|---|---|
| List of tab bars | Every bar, with the columns Items and Devices besides the shared ones. |
| Which tab bar shows where | The bar each page type gets; drafts do not count. |
| Tab bars: import and export | Bars as files. |
Of the bars that fit a page, the one placed higher in List of tab bars is shown. The order is changed with Move up and Move down in a row’s ”…” menu.
Creating a bar
Section titled “Creating a bar”Content → Nova → Extras → Tab bar → List of tab bars → New bar opens New tab bar, which starts the draft from a ready bar:
| Ready bar | Items |
|---|---|
| Shop | link to the home page, Search, My products, Cart, Account |
| With menu | Menu button, Search, Wishlist, Cart, Account |
| Simple | link to the home page, Search, Cart, Account |
| Empty | no items; the ”+” on the preview adds them |
The labels of the ready items stay empty, so every item shows the name of its type in the visitor’s language. A new bar appears in the shop only after it is assigned to pages and published.
The short description of Shop in the dialog and the hint of the empty builder name the item “Viewed”. The bar is created with My products, which shows the recently viewed products together with the comparison and the wishlist.
The builder
Section titled “The builder”The builder opens from Content → Nova → Extras → Tab bar → List of tab bars: Edit in the row of a bar, or a click on its name. It shows the structure and settings of the bar on the left and the preview on the right.
The bar has one pinned row with one column; its items are the blocks of that column. A bar contains at most 5 items. Every item type except Link may appear in a bar only once.
The preview offers a Device switch and a Page list (Home page, Category, Product, Search, Cart, Account). The bar is displayed on the channel’s page as in the shop, including which item is current on the chosen page. On a tablet the preview draws the bar with a dashed edge and the badge Not shown on tablets while the bar’s Devices is set to Phone, because the shop shows no bar there; the items can still be edited.
On the preview a click selects an item, the ”+” at the end of the row adds one, and the head of the row selects the bar. A selected item is moved with ‹ ›, and its settings appear on the left. The keyboard shortcuts act on the item or the bar selected on the preview and never while a field is being typed in.
With an item selected the settings offer Left, Right, Duplicate (Ctrl D), Copy (Ctrl C; the copy is inserted with “Paste” in the block choice) and Delete (Del). Bar above the settings leads back to the bar.
Settings of the bar
Section titled “Settings of the bar”With nothing selected, or with the row selected, the settings show the bar in three groups.
Behaviour
Section titled “Behaviour”| Setting | Options | Meaning |
|---|---|---|
| Devices | Phone (default), Phone and tablet | Where the bar is shown. Never on a computer. |
| When scrolling | Fixed (default), Hide going down | Fixed keeps the bar at the bottom of the screen; Hide going down hides it while the page is scrolled down and shows it again as soon as the page is scrolled up. |
| Current item | Colour (default), Line, Pill | How the current item is marked: by the colour of “Current” in the look, by a line over the item, or by a pill behind its icon. |
| Ready configuration | Shop, With menu, Simple, Empty | Replaces the items of the bar with those of a ready bar after a confirmation. The labels, icons and pages of the replaced items are removed with them; undo restores them. |
The behaviour group also states three fixed rules: on the product page the buy bar appears after scrolling as before and is placed above the tab bar; the checkout shows no bar (the cart page does); an open on-screen keyboard hides the bar.
Elements of this bar sets the styles of the elements Tab bar, Tab bar item and Tab bar badge for this bar. The styles of an item take precedence over those of the bar.
Assignment
Section titled “Assignment”Where and to whom shows where the bar is assigned; Change opens the assignment. A bar that is Assigned nowhere is not shown in the shop. The assignment itself is described in Assignment.
Item types
Section titled “Item types”| Type | What it does in the shop |
|---|---|
| Link | Icon, label and target: the home page, a category, a CMS page, a product or an address. |
| Search | Opens the page “Search” or the search on the full screen. |
| Viewed | A sheet from the bottom with the products looked at last. |
| Compare | A sheet with the products the visitor compares, and the way to the comparison. |
| My products | One button for the comparison, the recently viewed and the wishlist, a tab each. |
| Cart | The cart page or the side cart, with the count. |
| Wishlist | The wishlist, with the count. |
| Account | The login, or the account for a signed-in customer. |
| Menu button | Opens the menu drawer of the header, as its menu button does. |
Settings of an item
Section titled “Settings of an item”Every item has Label and Icon. An empty Label shows the type’s own name in the visitor’s language; an empty Icon shows the type’s icon.
Settings of the individual types:
- Link: Target (an item without a target is left out of the shop), Badge (None or a variant) and, with a badge, Badge text.
- Search: Opens with the values Page (the page “Search” with its field and suggestions) or Full screen (the header’s search on the full screen; a header with a search icon is required).
- Cart: Opens with the values Side cart or Page; Badge when empty also shows 0.
- Wishlist: Counter (how many products the wishlist contains), Only for customers.
- Viewed: Counter (default off), Cards (Swiped sideways, Grid or Compact list) and Products in the sheet (1 to 12, default 8; the last ones viewed).
- Compare: Counter (the number of products compared, hidden at 0).
- My products: Tabs (the comparison, the recently viewed and the wishlist, each on or off, dragged into the order the shop keeps; with one list left the sheet has no tabs), Opens on (The first with products, the default, or Always the first), Wishlist shown to (Everyone or Signed in only; shown while the wishlist tab is on), Counter, Recently viewed and wishlist: layout and Products in the sheet.
- Account and Menu button have no settings of their own.
With Wishlist shown to set to Everyone, a guest sees the list kept in the browser and a way to sign in; the shop’s wishlist has to be switched on.
Compare and the comparison tab of My products are not shown in the shop while the product comparison is off in the edited skin. The settings show a warning in that case. The comparison is switched on under Content → Nova → Extras → Comparison → Product comparison, see Product comparison.
Current item
Section titled “Current item”Under Current, Current on determines on which pages the item is marked as current:
- Automatic: by the item’s type or target. A link is current where its target is the page (the home page, a category with its subcategories, the product, the CMS page). Search is current on the search page, Cart on the cart, Wishlist on the wishlist, Account on the login, the registration and the pages of the account. Viewed, Compare, My products and Menu button are never current by themselves, because they open a layer.
- Chosen pages: only on the pages chosen under Pages (Home page, Categories, Product, Landing, Search, Account, Cart, Other).
On each page the shop marks one item: the first item whose chosen pages include the page, otherwise the first automatic item that leads to the page.
Notices in the builder
Section titled “Notices in the builder”Under the preview the builder lists the problems that prevent the bar from working as intended:
- The bar has no items, so the shop does not display it.
- The bar is assigned nowhere, so it is not shown in the shop.
- The bar contains more items than fit a phone’s width.
- No item leads to the home page.
- Two items lead to the same target.
- A link has no target and is left out of the shop.
- The search opens on the full screen, but no header has a search icon. The button then leads to the page “Search” instead.
- An item shows a list that My products shows too.