[Zope] Var includes
Pavlos Christoforou
pavlos@gaaros.msrc.sunysb.edu
Fri, 19 Feb 1999 10:37:29 -0500 (EST)
On Fri, 19 Feb 1999, Shaw, Howard wrote:
> Using 'var' to include acquired documents is easy. How can I use 'var'
> to include a document in a folder in the hierarchy below me?
>
> I have a folder 'temp_people'.
> Beneath this is 'uid', and beneath this 'studinfo'
> I need to include the contents of 'uid/studinfo' in a document in
> temp_people that is dynamically generated. I tried
> <!--#var "_[location]"--> where location is from a surrounding 'in sql
> method' call. I get a traceback saying:
>
> <!--
> Error type:
> Error value: uid/studinfo
> -->
>
> Is there any reasonable way to put in my SQL table a simple reference
> that can be reasonably used in DTML to get to a subfolder object? I
> don't want to have put DTML code in the SQL table and try and get it
> evaluated...
>
I am not sure I understand what you need to do but you can call a document
from down the hierarchy by simply:
<!--# with uid-->
<!--# var studinfo-->
<!--# /with-->
This will render the studinfo document and include it in the current
document.
Pavlos