The fragment editor

A fragment is a part shared by many pages: the header, the footer, a promotion. It opens in the same editor as a page, as a page with one container, which is the whole fragment.

Open it from a page: select the header or the footer, which are locked there, and choose Edit fragment in its toolbar. Or open it from Fragments in the console.

Editing it

The header fragment in the editor: its name and en/header at the top, the Content tree with Fragment content holding Logo, Navigation and Language switcher, and the header drawn as on the site

Number

Part

What it does

1

Name

The fragment's name, and its key: the language folder and the name.

2

Fragment content

Its one container, with the components it holds.

3

The fragment

Drawn as the pages show it. Components are added, changed, moved and resized as on a page.

Everything works as in the page editor: the components panel, the toolbar, the dialogs, Layout mode and Preview. A change is saved at once, and every page that shows the fragment shows it too once the site is built again.

What a fragment has not

The page menu of a fragment, with only Open in the console

Number

Part

What it does

1

Open in the console

Goes to Fragments in the console, where a fragment is renamed, moved, copied or deleted.

A fragment has no properties, no template and no title of its own: it is a part of pages, not a page.

Templates place fragments by name: a template with a header shows the fragment called header on every page made from it. To change the header everywhere, edit that one fragment. To show another fragment on one page only, add a Fragment component to that page.

Languages

On a site with languages, each language has its own copy of a fragment, in its folder: en/header and pt-br/header. A page shows the fragment of its own language. Each copy is edited apart, so translate the header and the footer as you translate pages. In the console, a fragment's details have Languages: Show opens its copy in another language, Create makes one to translate.