Nico de Boer wrote: Hmmm ... the weird and wonderfull workings of other peoples minds.... ;-) I don't understand why you use this overly complicated approach but I can see at least one problem:
The following thing to do is split the PATH_INFO variable and join it with dots:
<dtml-let splitpath="_.string.split(QUERY_STRING,'/')" training="_.string.join(splitpath[1:],'.')">
Then I want to get the attributes of the training with the dtml-with tag:
<dtml-with "training"> <table cellpadding="3" cellspacing="0" border="0" width="100%"> <tr><td>Institute:</td><td><dtml-var institute></td></tr> <tr><td>Location:</td><td><dtml-var location></td></tr> <tr><td>Title training:</td><td><dtml-var title></td></tr> <tr><td>Start date:</td><td><dtml-var date_start></td></tr> <tr><td>Stop date:</td><td><dtml-var date_stop></td></tr> </table> </dtml-with> </dtml-let>
Institute, location etc are attributes of the ZClass Training. The 'with' tag doesn't work; I get KeyErrors.
You have just turned "training" into a list of path elelements like: training = ['path', 'to', 'somewhere'] and trying to do: training.institute on a list will do you no good. regards Max M -- "Sorry I would Really Like To Help More On This Project, But Am To Busy Doing Paid Work On A Tight Deadline" Max M