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 graceland
Folder.
Inside you should see a number of objects including an
index_html
document.
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
web server.
Notice that the location of the graceland
folder appears at the
top of the management screen. This tells you the URL of the
folder.
You can navigate between Zope management screens using the location links. Go back up to the enclosing folders by clicking their ids in the URL.
Return to the enclosing folder by clicking the lesson2
link
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>
Click the Change
button.
This adds a link the the graceland
folder. Now let's test
out the link.
Click the View
tab.
You've successfully created a multi-page site with a link between two Zope objects.
Summary
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.