Snippets
Repeated blocks edited in one place
A contact box, a sign-up call or an FAQ often repeats on many pages. Snippets are reusable blocks kept in one place: save the component to the library, put it wherever you need it, and an edit to the snippet shows everywhere at once.
The screens in this chapter come from the VMHub demo, where you can look around yourself.
The snippet library
Snippets in the left panel lists the library: the name, the component type, the sites and how many pages use each snippet. Besides plain snippets, the library holds layouts — templates of whole rows.
Creating and placing a snippet
The quickest way is from a page: open a component on the Content tab and choose Promote to library. Elsewhere, add it with the Snippet component from the chooser — pick the snippet from the library and see its preview.
You edit a snippet in the library. The change shows on every page that uses it the next time it loads.
Where a snippet is used
The Used column shows how many pages carry a snippet, so you know what an edit will change before you make it. The Sites column says which sites can use it.
On a page, a snippet behaves like any other component: move it, hide it in a language or remove it. Removing it from a page leaves it in the library.
