I have the following folder structure / (Root folder) --Images (folder) I simply reference images in the images folder by using: <dtml-with Images> <dtml-var myimage> </dtml-with> Isn't there a shorter way to address objects in other folders? I thought of writing a dtml method than can handle all requests for objects in the image folder, but how does one pass the request on for that method. I come from a delphi background so i think in terms of procedure procedurename(var image : timage) begin do something with image; end; Thank you Roché Compaan
At 4:54 pm +0200 13/10/99, Roché Compaan wrote:
I have the following folder structure
/ (Root folder) --Images (folder)
I simply reference images in the images folder by using: <dtml-with Images> <dtml-var myimage> </dtml-with>
Isn't there a shorter way to address objects in other folders?
Untested: Doesn't <dtml-var "Images.myImage"> work? tone
Roché Compaan wrote:
I have the following folder structure
/ (Root folder) --Images (folder)
I simply reference images in the images folder by using: <dtml-with Images> <dtml-var myimage> </dtml-with>
Isn't there a shorter way to address objects in other folders?
You think that's long? Looks pretty short to me. If you want it even shorter you can make a DTML method that contains your snippet, and then call the method: <dtml-var theWrapperMethod> Remember that due to acquisition, your snippet of code will work anywhere in zope without needing to change it (as long as the Images folder is in the root folder). -Michel
Roché Compaan wrote:
I have the following folder structure
/ (Root folder) --Images (folder)
I simply reference images in the images folder by using: <dtml-with Images> <dtml-var myimage> </dtml-with>
Isn't there a shorter way to address objects in other folders?
You think that's long? Looks pretty short to me. If you want it even shorter you can make a DTML method that contains your snippet, and then call the method:
<dtml-var theWrapperMethod>
How do i tell the wrapper method to render a specific image in the images folder or how do i pass a variable to that wrapper? Roché Compaan
participants (3)
-
Michel Pelletier -
Roché Compaan -
Tony McDonald