Jan Ma-Bška wrote at 2003-3-6 13:53 +0100:-A
Though it may seem as a stupid question, it's rather important (at least for me).. How to create a DTML document pointer (<dtml-var required_document>) from a string? Let's see this example: www.mydomain.com/somepath/index?read=20030220
What I need is that the index at somepath opens another document called '20030220' and prints it's contents, like in this case: ==index== <dtml-var standard_html_header> <dtml-var "20030220"> <dtml-var standard_html_footer> ===end=== only I want to be able to define this dynamically based on the user queries.
If you can give any hints, it would really be helpful.
Please read <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html> You are interested in "computed variable access", especially "_[expression]" and "_.getitem(expression)". Dieter