Documents
A document is a record edited in one of Nova’s builders. It holds the layout and the content of one part of the shop; its colours, typefaces and animations come from the skin of the channel. Each kind of document has a list and a screen for import and export in the rail; most kinds also have a screen that shows which document a page receives. The builder of a kind is not on the rail: it opens from the list.
The kinds of documents
Section titled “The kinds of documents”| Document | List | What the shop shows |
|---|---|---|
| Header | Content → Nova → Header → List of headers | the first matching one |
| Menu | Content → Nova → Menu → List of menus | the menu in each place of a sales channel |
| Footer | Content → Nova → Footer → List of footers | the first matching one |
| Banner set | Content → Nova → Marketing → Banners → List of banner sets | every matching one |
| Library item | Content → Nova → Marketing → Library → Library of slides and banners | the item where another document links it |
| Popup | Content → Nova → Marketing → Popups → List of popups | every matching one |
| Notice bar | Content → Nova → Marketing → Notice bars → List of notice bars | every matching one |
| Section | Content → Nova → Sections → List of sections | the section where a layout of Shopping Experiences contains it |
| Quick view | Content → Nova → Listing → Quick view → List of quick views | the first matching one |
| Product page template | Content → Nova → Product page → List of templates | the first matching one |
| Product info | Content → Nova → Product page → Product infos → List of product infos | every matching one |
| Cart and checkout | Content → Nova → Cart and checkout → List of cart and checkout documents | the first matching one |
| Tab bar | Content → Nova → Extras → Tab bar → List of tab bars | the first matching one |
The first matching one: of the documents whose assignment matches the page, the one placed highest in the order of the list is shown. The default document is always last in the order and is shown wherever no other document matches.
Every matching one: every document whose assignment matches the page is shown, in the order of the list.
A menu is shown where a sales channel places it: main navigation, top bar, mobile, footer. A section is shown where a layout of Shopping Experiences contains the element Section with it. A library item is a slide or a column that sets and builders link: changed in the library, it changes everywhere it is linked once it is published. → Assignment · Main menu · Section builder
The stages of a document
Section titled “The stages of a document”- Creation. The button New kind on the list (for example New header) opens a window with the name and a choice under Start from: the templates of the kind and Empty. Create creates the document as a draft. A new document is not placed anywhere; it is shown in the shop once it is placed and published.
- Editing. Edit on the list, or a click on the name, opens the document in its builder. Changes are held as unsaved changes until Save draft.
- Publication. Publish saves the draft and publishes it as the next version of the document. The top bar then shows the version the shop has, In the shop: version n · date, and, while the draft differs from it, Draft differs from the shop.
- Placement. The document is assigned to pages and channels, made the default, placed in a menu location or put into a layout, depending on its kind.
A document that has never been published shows nothing in the shop, even when it is assigned. The assignment itself takes effect as soon as it is saved, without a new publication.
History in the top bar of a builder opens the Publication history of the document. Restoring a version and discarding the draft work as for a skin. → Skins and publishing
The list of a kind
Section titled “The list of a kind”The list of a kind opens with a short description of the kind. Its top bar holds Import JSON, which opens the import screen of the kind, and New kind. The side bar holds Refresh and the filters: Name, Technical name, Published (Published at least once or Never published) and Changed.
The columns of a list depend on the kind. A kind placed by assignment shows where its documents are assigned, for example Pages or Products, Channels and Who sees it; every list shows Changed and the State of each document:
| State | Meaning |
|---|---|
| Draft | never published |
| Unpublished changes | published, and the draft differs from the published version |
| Published | published, and the draft equals the published version |
| Scheduled | the time window of the assignment has not started yet |
| Ended | the time window of the assignment has ended |
The default document carries the label Default.
For the kinds placed by assignment, the list is arranged in the order that determines which document is shown first. The note above the list explains it, for headers for example: “When several headers fit a page, the higher one wins. The default is always last and shows where nothing else fits.” Move up and Move down change the order. While filters narrow the list, the order cannot be changed, because a neighbour in it may be hidden.
A kind with several places, such as the banner sets and the notice bars, shows a switch of the places above the list; the order and the assignments belong to the selected place.
The actions of a row
Section titled “The actions of a row”| Action | Effect |
|---|---|
| Edit | opens the builder |
| Move up / Move down | moves the document in the order of the place |
| Duplicate | creates a copy as a draft, named “Copy of name” |
| Export | downloads the document as a JSON file |
| Rename | changes the name and, for some kinds, the description |
| Assign to pages and channels… | opens the assignment page; not available for the default |
| Remove from this place | for the kinds where every matching document is shown: takes the document out of the place |
| Make default | for the kinds of which the first matching one is shown: makes the document the default; only a published document can become the default |
| Delete | deletes the document; the pages it was assigned to receive the next matching one and in the end the default |
The default cannot be deleted: another document has to be made the default first. Several selected rows are deleted together.
The actions of a builder
Section titled “The actions of a builder”The menu More actions in a builder holds the actions of the open document. Depending on the kind they are: New kind, Import…, Rename… or Rename and describe…, Duplicate, one of Assign to pages and channels…, Where it shows and Where it is used, Export JSON, Show all, which opens the list of the kind, and Delete. A library item has no New entry. Export JSON exports the saved draft, so changes have to be saved first.
Import and export
Section titled “Import and export”The screen Import and export of each kind has two parts.
Export downloads a chosen document as a JSON file with its layout, content and translations. References to categories, products, rules and other records are exported together with their names, so that the same records can be found in another shop.
Import reads a JSON file of the same kind:
- Under Import as, New (draft) creates a new document, which is shown nowhere until it is placed and published; choosing an existing document replaces its draft, while its published version stays in the shop until the draft is published.
- Differences lists what the file would change in the draft of the chosen document.
- References in the file lists every record the file points at, with its state: Exists in this shop, Matched by name, Chosen by you, Will be removed or Missing in this shop. A missing reference needs a replacement or Remove before the import can run.
- Translations says which languages of the file exist in the shop; texts in a language the shop does not have are skipped. A text missing in the shop’s default language takes, text by text, the one of the first language of the file that has it. For the shop’s languages the file has no texts in, it adds: “It has no texts in languages; there the shop shows those of its default language.”
- Import to draft imports the file. The message names the references that were removed.
A document with unsaved changes cannot be the target of an import: the changes have to be saved or discarded first.