Lesson 3 12 min Free lesson

Your first site

Create a site, choose which items it shows, build a homepage from blocks, and set up its navigation.

A site is how visitors meet your collection. In Omeka S, your items live in the admin, and each site is a public website that shows some or all of them, with its own homepage, menu, and look. Because every site draws on the same items, you describe each thing once and can publish it in more than one place.

In this lesson you create Wrenfield Botanical Illustrations, the library's collection site, and put the three items from lesson 2 on it. It gets a homepage with a welcome paragraph and a preview of the newest items, a menu, and a place at the front of your web address.

The video creates the site and builds its homepage from start to finish, then looks at the other ways items reach a site, more of what blocks and navigation can do, and the mistakes people make most often. This page has the same steps, so you can follow along without pausing. Two sections at the end, Going further and When things go wrong, stay closed until you open them: come back to them when you need them.

Before you start

  • Sign in to your site's admin. On your RefBytes dashboard, open your site and click Admin Site.
  • Have a few items ready. If you're following along with the course's collection, these are the three items from lesson 2.

Create the site

  1. In the admin's left menu, click Sites, then Add new site. The New site page opens on its Info tab.
  2. In Title, type Wrenfield Botanical Illustrations. Visitors see it at the top of every page.
  3. In URL slug, type botanical-illustrations. The slug is the site's short name in its web address, so keep it short and lowercase, with hyphens between words. Choose it with care: changing it later changes every address on the site. If you leave it empty, Omeka makes one from the title.
  4. Leave Summary and Thumbnail empty for now; lesson 11 fills them in. Leave the Theme tab on Default; lesson 9 changes it.
  5. The eye button beside Add, at the top right, says whether the site is public. Click it to make the site private while you build it. You can still see it while you're signed in, and lesson 12 makes it public.
  6. Click Add. Omeka says Site successfully created and opens the site's Site admin page.

The left menu now has the site's own menu beneath Sites: Site admin, Pages, Navigation, Resources, User permissions, and Theme.

๐Ÿ“ท Screenshot: the New site page with the title and URL slug filled in.

Put your items on it

An item isn't on a site until it's assigned to it. A new site assigns itself every item you create from now on, but the three items from lesson 2 were made before the site existed, so you assign them yourself.

  1. In the site's menu, click Resources. The Items tab says There are currently 0 items assigned to this site.
  2. Under Manage current items, choose Add - keep existing items and assign items from a new search query. A Search query field appears.
  3. Leave Search query empty. An empty search matches every item, so all of them are added.
  4. Click Save. Omeka says Item assignment in progress. To see the new item count, refresh the page. The work happens in the background, so refresh after a moment: the count now says 3.

๐Ÿ“ท Screenshot: the site's Resources page with the Add option chosen and the search query empty.

Now check that new items will follow. Click Site admin, then its Settings tab: under General, Auto-assign new items is ticked. That's why every item you add from now on starts out on this site.

Build the homepage

Omeka gives every new site one page, called Welcome, filled with sample text that shows off the editor. You'll turn it into your homepage. Pages are built from blocks: each block is one piece of the page, such as a passage of text or a row of items, stacked from top to bottom.

  1. In the site's menu, click Pages, then click Welcome to edit it.
  2. Clear out the sample content. The page has three blocks: HTML, Line break, and HTML again. Click Remove block (the trash icon) on each one. Each shows Block to be removed and disappears when you save.
  3. In the Add new block list on the right, click HTML. A text editor appears at the bottom of the page. Type a short welcome for visitors: Hand-colored prints, pages from herbals, and seed catalogs from the Wrenfield College Library.
  4. Click Browse preview. This block shows a few of the site's items, newest first, with a link to the rest. Set:
    • Limit: 6
    • Preview title: Recently added
    • Leave Search query empty, and Link text as Browse all.
  5. Click Save. Omeka says Page successfully updated.

๐Ÿ“ท Screenshot: the Welcome page in the editor, with an HTML block, a Browse preview block, and the Add new block list on the right.

Set up the navigation

The Welcome page isn't in the site's menu yet, and the site doesn't know it's the homepage. Until it does, the public site says This site has no pages.

  1. In the site's menu, click Navigation. The tree on the left is the menu visitors see. It has one link so far, Browse, which lists the site's items.
  2. On the right, under Select a homepage, choose Welcome.
  3. Under Add a link to a site page, click Welcome (welcome). It joins the tree.
  4. Drag Welcome above Browse, so it comes first in the menu.
  5. Click Save. Omeka says Navigation successfully updated.

๐Ÿ“ท Screenshot: the Navigation page with Welcome above Browse, and Welcome chosen as the homepage.

See it as visitors will

  1. Beside the site's title in the left menu, click the View public site icon. The site opens in a new tab, in Omeka's Default theme.
  2. Check the homepage: your welcome text, then your three items under Recently added. Click one to see its page, then click Browse in the menu for the full list.
  3. While you're signed in, a bar across the top of each page says Signed in as with your name, and has an Edit link that takes you to the same page in the admin. Visitors never see it.

Because the site is private, anyone who isn't signed in gets a Forbidden page at its address. That's what you want while you build. Lesson 12 makes it public.

๐Ÿ“ท Screenshot: the public homepage with the welcome text and the Recently added preview.

Make it your front page

Your RefBytes dashboard's Public Site button opens your bare web address, which lists your sites rather than opening one. Make this site the one it opens.

  1. In the left menu, under Admin, click Settings.
  2. Under Display, choose Wrenfield Botanical Illustrations in Default site.
  3. Click Save. Omeka says Settings successfully updated.

Public Site now opens your homepage. While the site is private, visitors who aren't signed in still see the plain page at that address, without your site on it.

Going further

All the ways items reach a site, what assigning an item does and doesn't control, the blocks worth knowing for a homepage, and more you can do with navigation.

Four ways an item reaches a site

Where What it does Best for
An item's Sites tab Lists the sites the item is on. Click a site on the right to add it; Unassign from site takes it off. One item at a time
The site's Auto-assign new items (Site admin > Settings) Every new item starts out assigned to this site. You can take it off on the item's Sites tab before saving. A site that shows everything
Your Default sites for items (Edit user > User settings) New items you create start out assigned to the sites you choose here. Your own work, when only some sites should get it
The site's Resources page Adds or removes many items at once with a search. Items that already exist, and big changes

On the Resources page, Replace unassigns every item and assigns the results of a new search, Remove unassigns the items a search finds, and Remove all empties the site. With a search such as items in the Medicinal plants item set, these let you shape a site in one step. Tick Keep this query to save the search with the site, ready for next time. Lesson 6's batch editing can also change many items' sites at once, with Add to sites and Remove from sites.

What assigning controls

A site's Browse page, its search, and its Browse preview blocks list only the items assigned to it. Assigning isn't a lock, though: a public item's own page still opens on any site for someone who has its address. To keep something from visitors, make the item private, as in lesson 2.

The same goes the other way. While you're signed in, the public site shows you private items too, so check what visitors see in a private browsing window.

The Item sets tab on the Resources page works the same way for item sets: it chooses which item sets the site lists. Lesson 6 uses it.

Blocks for a homepage

Block What it shows
HTML Formatted text: paragraphs, headings, lists, and links.
Browse preview A few items, item sets, or media, newest first unless its Search query sorts them another way, with a link to the rest. The search can also narrow it, to one item set, say.
Media embed The images or files of items you pick. Lesson 8 uses it.
Asset An image from Assets, such as a banner, that isn't part of the collection.
Page title The page's title as a heading. In the Default theme, a page doesn't show its title without it.
Line break A dividing line or a gap between blocks.

Drag a block by the handle at the left of its header to move it. Remove block only marks a block; click Restore block if you change your mind before saving. Nothing changes on the public site until you click Save.

In a Browse preview, Components chooses what each item shows: Heading, Body, and Thumbnail. Unless the site's settings say otherwise, the heading is the item's title and the body its description. Lesson 8 puts blocks side by side and builds longer pages.

More in the navigation

  • Add a custom link adds links that aren't pages: Browse (a list of items, which you can narrow with a search, such as one item set), Browse item sets, and Custom URL (any web address, such as your library's home page).
  • Edit link, on each link in the tree, changes the Label visitors see without renaming the page.
  • Drag one link onto another to nest it beneath. Lesson 8 builds child pages this way.
  • Remove link takes a link out of the menu without deleting the page.
  • If Select a homepage is left empty, the first page in the navigation is the homepage.

When things go wrong

What to do when the site has no pages, your items are missing, or the address opens the wrong thing.
  • The site says "This site has no pages." The Welcome page isn't in the navigation and isn't the homepage. In Navigation, choose it under Select a homepage, add it from Add a link to a site page, and click Save.
  • Your items aren't on the site. Auto-assign new items only covers items created after the site. Assign older ones from the site's Resources page, or add the site on each item's Sites tab. If Resources still says 0 items after a refresh, look under Jobs: an assignment marked Error didn't finish, so try again.
  • Visitors can't see an item you can. While you're signed in, Omeka shows you private items on the public site. Check the eye button on the item's edit page, and look at the site in a private browsing window.
  • "The slug "โ€ฆ" is already taken." Another site in your installation already uses that short name. Choose a different URL slug, using only letters, numbers, hyphens, and underscores.
  • Public Site opens a list of sites instead of your homepage. Choose your site under Settings > Display > Default site. If you aren't signed in and the site is still private, the list is what visitors should see.
  • A page has no heading. The Default theme doesn't show a page's title on its own. Add a Page title block and drag it to the top.
  • There's no Add new site button. Your role can't create sites: Editors, Supervisors, and Global Administrators can. Ask a Global Administrator to create the site or change your role.

On RefBytes

Block Suite, one of the premium modules included with every RefBytes plan, adds blocks that give a homepage a finished look. BlockSuite: Hero opens a page with a large heading, a short text, and up to two buttons, over a photograph if you like. BlockSuite: Card Slider shows cards you write yourself, each with an image, a title, a short description, and a link, as a sliding row or a grid. Install Block Suite from your site's Modules tab on the RefBytes dashboard, switch it on under Modules in the Omeka S admin, and its blocks join the Add new block list, styled by your theme.

Your turn

Sign in to tick off what you've done and keep your place in the course.

Log in for Support