Where are these ZPT examples that you mention? In the Zope installation or on the Zope site? I've looked in both, and I haven't been able to find any, although I realise its probably me being blind!
From what I've read about ZTUtils, its all template-based. Does anyone have a solution thats DTML-based, or some good template-based examples?
Kind regards Ashley From: Dieter Maurer <dieter@handshake.de> To: "Ashley Lloyd" <ashleylloyd@hotmail.com> CC: zope@zope.org Subject: Re: [Zope] Newbie: dtml-tree Date: Fri, 21 Feb 2003 20:24:26 +0100 Ashley Lloyd wrote at 2003-2-21 10:52 +0000:
I am hoping to use dtml-tree to display the results of SQL statements. I have looked around, and there seems to be quite a bit of information on dtml-tree, but much of it is out of date, and most only uses it to list folder contents.
Nowadays, I would use the tree support in "ZTUtils". It gives you much better control than "dtml-tree". For examples, look at the ZPT examples. Dieter _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) _________________________________________________________________ Overloaded with spam? With MSN 8, you can filter it out http://join.msn.com/?page=features/junkmail&pgmarket=en-gb&XAPID=32&DI=1059
Ashley Lloyd wrote:
Where are these ZPT examples that you mention? In the Zope installation or on the Zope site? I've looked in both, and I haven't been able to find any, although I realise its probably me being blind!
lib/python/Products/PageTemplates/examples
From what I've read about ZTUtils, its all template-based. Does anyone have a solution thats DTML-based, or some good template-based examples?
ZTUtils are, for the most part, just classes, how you use them is up to you. The examples are zpt based. Another similar tool is the ExpansionTree product I wrote, which doesn't make any assumptions about markup or doesn't force cookie usage like ZTUtils.SimpleTree. Its on zope.org, though there's a newer experimental release sans-documentation and examples hosted at my site, that has a simplified API. -- Jamie Heilman http://audible.transient.net/~jamie/ "We must be born with an intuition of mortality. Before we know the words for it, before we know there are words, out we come bloodied and squalling with the knowledge that for all the compasses in the world, there's only one direction, and time is its only measure." -Rosencrantz
Ashley Lloyd wrote at 2003-2-25 11:25 +0000:
Where are these ZPT examples that you mention? In the Zope installation or on the Zope site? I've looked in both, and I haven't been able to find any, although I realise its probably me being blind!
Look at the "examples" folder in "Products/PageTemplates".
From what I've read about ZTUtils, its all template-based. Does anyone have a solution thats DTML-based, or some good template-based examples?
"ZTUtils" contains functions that can be used in both ZPT and DTML (via Python Script, as you cannot import things in DTML). But there is a DTML extension: "TALES expressions in DTML". Search the archive! I never used or read it myself. Dieter
participants (3)
-
Ashley Lloyd -
Dieter Maurer -
Jamie Heilman