Lesson 1. "Elvis Lives" Home Page

Zope cannot find the tutorial examples. You should install the tutorial examples before continuing. Choose "Zope Tutorial" from the product add list in the Zope management screen to install the examples.

If you have already installed the tutorial, you can either follow along manually, or reinstall the tutorial examples. Note: make sure that you have cookies turned on in your browser.

Let's create a home page for "Elvis Lives", an organization that tracks Elvis sightings.

First you need to create a DTML Document for the home page. Zope uses DTML Documents for web pages.

  1. Select DTML Document from the "Select type to add..." list.
  2. Type home.html for the document id.
  3. Type Elvis Lives for the document title.
  4. Click the Add and Edit button.

You should now see a screen where you can edit your web page.

  1. Change the contents of the document to:
    <dtml-var standard_html_header>
    <dtml-var header.gif>
    Welcome to <i><dtml-var title></i>,
    your source for information about
    Elvis and Elvis sightings.
    <dtml-var standard_html_footer>
  2. Click the Save Changes button.

The contents of the document are a mixture of HTML and special tags called DTML.

The <dtml-var> tag inserts things into web pages. In this page, we use this tag to insert a page header, an image, a title, and a page footer.

Now let's see what our page looks like.

  1. Click the View tab at the top of the screen.

Congratulations you've created a web page with Zope.


Zope allows you to create and manage objects through the web.

In the next lesson you'll expand your web site.

Comments on this lesson? Email feedback.