[Zope] - generating links from a database

Jeff Nielsen jeffniel@ix.netcom.com
Tue, 26 Jan 1999 22:27:36 -0800


I'm building a site that is very much database driven. I'm trying to
generate a list of items on one page with each item having a hyperlink to
another page that will show detailed information for that item. I can create
the pages, but I can't quite figure out how to pass the key value from the
hyperlink to the query for the summary page.

This is the code I'm using to create the list of hyperlinked items in the
"list of items" page:

<!--#in EventsByStateQuery -->
<a href="EventSummary?EventID=<!--#var EventID -->">
<!--#var EventName --></a><br>
<!--#/in-->

This works well.

What I'm not successful at is passing the EventID to the second query. I've
found I can hard code it as such:

<!--#in expr="EventSummaryQuery(EventID='1')" -->
<!--#var EventName -->
<!--#/in -->

But I can figure out how to pass the EventID dynamically.

Any guidance would be appreciated.

Jeff
jeffniel@ix.netcom.com