Page Templates plus scripts vs DTML
As a Zope newbie I'm presuming I should take on board what I've read in various Zope documentation about DTML being deprecated in favour of ZPT+scripts? It's just that there doesn't seem to be a wealth of examples of how one goes about various things using ZPT, whereas there's plenty using DTML. Don't tell me that I really do have to start using DTML.... do I?
Hello Crosbie, Tuesday, January 14, 2003, 11:50:33 AM, you wrote:
As a Zope newbie I'm presuming I should take on board what I've read in various Zope documentation about DTML being deprecated in favour of ZPT+scripts?
DTML is not being deprecated, it is still very useful for stuff like SQL, plaintext, email-formatting etc... The thing is, though : You will be very much more productive, and have *very much* cleaner designs and code with scripts + ZPT for html/xml applications :)
It's just that there doesn't seem to be a wealth of examples of how one goes about various things using ZPT, whereas there's plenty using DTML.
DTML has been around much longer.. - And *needs* a lot more examples.. More and more people move to ZPTs and you will get good help on the mailinglists, even if there are not as many howtos yet..
Don't tell me that I really do have to start using DTML.... do I?
no.. - don't even consider it for HTML/XML.. ZPT+Scripts is the path of light.. It might be useful for the things i mentioned above, though.. just my *personal* 2 cents.. others may (and will) be of totally different opinions.. :) -- Geir Bækholt geir@funcom.com Tools/HCI-developer Tools/Billing - Product Operations Funcom Oslo
Crosbie Fitch wrote:
As a Zope newbie I'm presuming I should take on board what I've read in various Zope documentation about DTML being deprecated in favour of ZPT+scripts?
It's just that there doesn't seem to be a wealth of examples of how one goes about various things using ZPT, whereas there's plenty using DTML.
Don't tell me that I really do have to start using DTML.... do I?
Hi Crosbie, I have a collection of links to ZPT related documentation on my WebSite. http://www.webproducer.at:9080/Members/tonico/News/zpt_documentation. Tonico -- Tonico Strasser, WebDesigner Contact me mailto:contact_tonico@yahoo.de Visit my HomePage http://Tonico.FreeZope.org
From: Tonico Strasser
I have a collection of links to ZPT related documentation on my WebSite.
http://www.webproducer.at:9080/Members/tonico/News/zpt_documentation.
Thanks Tonico, very useful. :) I'm currently trying to figure out how to get an included page template to acquire from the includer rather than the folder it has been included from...
On Tue, Jan 14, 2003 at 11:32:20AM +0000, Crosbie Fitch wrote:
I'm currently trying to figure out how to get an included page template to acquire from the includer rather than the folder it has been included from...
Sounds like a namespace issue, where you need to use 'container' rather than 'here', or vice versa. Other references include: http://www.devshed.com/Server_Side/Zope/ZPTBasics/ZPTBasics1/print_html http://www.zope.org/Members/peterbe/DTML2ZPT There is also a ZPT list on lists.zope.org. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
From: Mike Renfro Crosbie Fitch wrote:
I'm currently trying to figure out how to get an included page template to acquire from the includer rather than the folder it has been included from...
Sounds like a namespace issue, where you need to use 'container' rather than 'here', or vice versa.
Hmmm. So far it seems to me that ZPTs will acquire from their location full stop, and that the only way of getting around this is to use METAL macros to insert stuff that then acquires from the enclosing ZPT. For example if I have root/folder and I have root/p1_zpt that references root/folder/p2_zpt like this: <p tal:content="structure root/folder/p2_zpt">xxxx</p> then everything within p2_zpt will acquire with respect to root/folder rather than root. For example, if p2_zpt contains "<h2 tal:content="here/title">xxxx</h2>" then that'll be the title of 'folder' rather than 'root'. But do correct me if I've got the wrong end of the stick here...
participants (4)
-
Crosbie Fitch -
Geir Bækholt -
Mike Renfro -
Tonico Strasser