Series 1: Sulu at a glance Chapter 7 of 9

Snippets: maintain once, visible everywhere

Editing content
Applies to: every Sulu website As of Sulu 3.0

In short

A snippet is a building block that you maintain once and that appears in several places on the website. Where that is and which fields a snippet has is set by the templates of your website. On the example website the snippet “Autowerkstatt Mustermann” chooses the organization. Its address and phone number appear in the footer of every page.

The address and phone number of your business appear in the footer of every page. You maintain them in one place: in a snippet. The website shows them everywhere the snippet is built in.

Where a snippet appears and which fields it has is set by the templates of your website. A Sulu without extensions has a single template for snippets, with the fields Title and Description.

Snippets and their place on the website

Image 1 of 4Snippets without extensions

The list of snippets in Sulu without extra packages: one snippet of the type "default". The main menu has no submenu under "Snippets".

This is the snippet list in a Sulu without extensions. Snippets has no submenu in the main menu. The list knows only one type: default, the template Default.

  1. Column “Title” The name of the snippet.
  2. Column “Type” Without extensions this always says default.

Image 2 of 4The snippet list

The list of snippets. The table shows title, creator, status and type, search and filter are above it.

All snippets are listed under Snippets in the main menu. The Type column says which template a snippet belongs to.

The types in the image belong to the example website. There, effects and format control the design and organisation the details of the business. On the example website Snippets also has a submenu in the main menu. It comes from an extension.

  1. Column “Title” The name of the snippet.
  2. Column “Type” The template of the snippet, for example “organisation”.
  3. Magnifier Searches snippets by name.

Image 3 of 4The snippet “Autowerkstatt Mustermann”

The snippet "Autowerkstatt Mustermann" opened. It has a snippet title and chooses the organisation whose details the website uses.

This snippet has the type organisation. It chooses the Organisation, that is, the business. The website uses its address, location and logo.

You maintain the organization itself under Contacts. The type organisation comes with the template of the example website. Sulu itself does not have it.

  1. Snippet Title The name in the list.
  2. Organisation The business. The website takes the address, location and logo from here.
  3. Name of the Organization Replaces the name of the organization if you fill it in.

Image 4 of 4The footer of the website

The footer of the website on a dark background: name and slogan of the workshop on the left, links in the middle, address, phone and email on the right.

The footer of the example website shows the address, phone number and email of the business. These details come from the organization that the snippet chooses.

The footer is the same on all pages. That is why you maintain the details only once.

  1. Address Comes from the chosen organization.
  2. Phone Also comes from the organization.
  3. Legal notice A link to a page that you maintain in the page tree.

More on this