On Mon, Dec 06, 1999 at 06:48:30PM +0100, Jochen Haeberle wrote:
Hi,
please forgive my probabyl stupid questions... but I am doing my first steps in Zope and unfortunately, I do not have an python background.
I am working on a Newssystem. Editors are going to publish articels, related materials and pictures and are given the choice to add a poll and/or a discussion to their articel.
I wanted to include the main discussion page of ZDiscussion or the included ZDConfera on the page of the articel itself, not just link to it. Therefore I created a folder for my articel, and put a ZDiscussion topic, named disc, inside. In my article page, I tried
<dtml-with disc> <dtml-var index_html> </dtml-with>
This gives a key error Try <dtml-with "PARENTS[0].disc"> <dtml-var index_html> </dtml-with>
even the most simplest form (although I doubt this should work correctly)
<dtml-var disc.index_html>
<dtml-var> that way looks the variable name LITERALLY. Instead, you want to do something like this: <dtml-var "PARENTS[0].disc.index_html"> Also, are you sure that the index_html exists?
does return an error. Why is the ZDiscussion folder something special??? What's wron about my tries? Is there a way to do what I want?
Jochen
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope No cross posts or HTML encoding! (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- Stephen Pitts smpitts@midsouth.rr.com webmaster - http://www.mschess.org