Skip to content

Skins and publishing

A skin is a named set of values. A field the skin does not set takes its value from the parent skin, and the parent from its own parent, up to Base. Base holds the Storefront values of the theme and cannot be edited; every chain of skins ends with it.

Each field in the column of a screen shows whether its value is the skin’s own or inherited. The button beside the field switches between the two: “Inherited — click to override in skin” gives the skin its own value, and “Overridden — click to inherit from source again” removes it, so the value comes from the chain again. The top bar shows the parent of the skin being edited, for example inherits from: Base.

The skins are created, renamed, duplicated and deleted in the list of skins. → List of skins

Every screen that edits a skin starts with the pickers Skin and Sales channel. Skin selects the skin the screen edits. Sales channel selects the channel whose shop the preview shows. The skin picker offers the shared skins and the channel layer of the selected channel, which is marked Channel layer.

Choosing another skin opens it in a sales channel whose shop shows it, so that the preview never lays a skin over a shop that does not use it. A skin that no channel shows keeps the selected channel.

A change of a skin passes through three states.

  1. Unsaved. The change is held in the admin and shown in the preview. The top bar reads Unsaved: n changes.
  2. Draft. Save draft writes the changes as the draft of the skin. The top bar reads Draft saved · n changes, the number of changes the draft holds against the published version.
  3. Published. Publish saves the draft and publishes it as the next version of the skin. The message “Published as version n. The storefronts showing this skin are being recompiled.” confirms it. The top bar then reads Published.

A skin that has never been published reads Never published: the shop shows nothing of it.

Publishing compiles the theme again for every sales channel that shows the skin, and removes their pages from the HTTP cache. A channel shows a skin when the skin is part of the chain of the skin assigned to it, so publishing a parent skin also compiles the channels of the skins that inherit from it. Publishing a skin also takes live an assignment that waits for a publish, when the skin is part of the chain of the newly assigned skin.

Before a version is created the draft is checked. If a value is refused, for example a typeface the shop does not host, the publication does not take place and a message names the cause.

A field marked After publishing takes effect in the shop only once the skin is published and the theme compiled again; the live preview does not show it. → Preview

ButtonEffect
Historyopens the Publication history of the skin beside the screen
Save draftwrites the unsaved changes to the draft
More draft actions → Discard draftremoves every change since the version the shop shows, unsaved ones included, on every screen of the skin
Publishsaves and publishes

On a builder the same buttons act on the open document and not on the skin. A screen whose changes take effect as soon as they are saved, such as Store details, has a single Save button and the state Saved. → Documents

The history lists the published versions of the skin, newest first, and marks the one the shop shows with In the shop. Restore to draft makes the chosen version the draft. A version always holds the whole skin, so restoring it replaces the draft on every screen of the skin, unsaved changes included. The shop changes only after Publish.

Discard draft asks for confirmation first: the changes since the version the shop shows are removed on every screen of the skin, unsaved ones included, and this cannot be undone.

How many versions are kept is set in Content → Nova → System → Retention; older versions are removed once a day, and the version the shop shows always stays. → System

Content → Nova → Skins → Sales channels lists every Storefront channel in one table: the skin the channel is assigned and the values the channel sets for itself.

No change on this screen needs Save draft. An assignment and a value of a channel are stored at once and are shown in the shop after they are published. Until then the row of the channel says what the shop still shows, for example “Waits for publishing — the shop still shows skin”. A channel without a skin shows Base (theme values).

Publish in the top bar of this screen publishes the pending changes of this screen: first the channel layers with changes, then the assignments. A skin in the chain of an assigned skin that has never been published is published at the same time as its first version, so assigning a skin and publishing shows that skin. The skin open in the editor is not involved. The message names how many channels now show their changes.

A channel that runs another theme is marked with “Uses the theme ‘theme’: the skin shows once the channel uses Nova.”

A channel can set its own value of a field on top of the skin assigned to it. The value is stored in the channel’s layer (Channel layer in the skin picker): a skin bound to this channel and placed on top of the shared skin. The first value set for a channel creates its layer, named after the skin and the channel, and the channel is then assigned the layer in place of the shared skin. The shared skin stays unchanged, so other channels that use it are not affected.

On the Sales channels screen the column Primary colour is the value a channel can set this way; the button beside it switches between the value of the skin and the channel’s own value.

On the other screens the skin picker offers Overrides for channel, which creates the layer for the selected channel and opens it. While the preview shows a channel whose layer sets its own values, a line under the pickers says so (“The preview shows channel as its shop will: layer over this skin…”) and Edit layer opens the layer.

The window Unsaved changes opens when the skin being edited has unsaved changes and the operator:

  • opens another screen of Nova or another page of the admin,
  • chooses another skin,
  • or, for a builder, leaves the builder or opens another document in it.

The window offers Cancel, which keeps the current screen open, Discard changes, which drops the changes, and Save and continue, which saves them as Save draft does and continues. Closing or reloading the browser tab with unsaved changes makes the browser ask first.

The language switch in the top bar asks in the same situation before it changes the language. → Preview