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.
Elvis loved his home, Graceland. Let's link an existing page to our web site with information about Graceland.
Click on the
Inside you should see a number of objects including an
If a Folder contains an object named index_html, that object
provides the folder's default view. This is just like how an
index.html or a
default.htm file works with a conventional
At the top of the management screen, you will find a folder icon followed by "Folder at", and the URL of the current folder. In addition to being informative, this URL is a navigation aid. Each part of this URL is a link, and can be used to go to the management screens of parent folders.
Return to the enclosing folder by clicking the
in the folder's URL.
Click on the
home.html document to edit it.
Change the contents of the
home.html document to:
<dtml-var standard_html_header> <dtml-var header.gif> <p> Welcome to <i><dtml-var title></i>, your source for information about Elvis and Elvis sightings. </p> <h2>About Elvis</h2> <p> Elvis was born in <a href="graceland">Graceland</a>. </p> <dtml-var standard_html_footer>
Save Changes button.
This adds a link the the
graceland folder. Now let's test
out the link.
You've successfully created a multi-page site with a link between two Zope objects.
Zope files and documents have a lot in common with conventional web pages--they have names, are arranged in hierarchies, and have URLs that correspond to their locations.
Folders contain other Zope objects.
The default object for a Folder is named index_html.
The Zope management screens allow you to navigate between folders and determine the URLs of objects.
In the next lesson you'll learn about moving pages around in Zope.
Comments on this lesson? Email feedback.