Re: [Zope] images in directories

2000-11-11 Thread Danny William Adair
I have a similar situation where I find myself way down in the tree structure and have to go up to a certain point and down again. Leaving "bad structuring" aside (actually its well structured in many other respects), all I could think of to get a hold of these objects was a whole bunch of nested

Re: [Zope] images in directories

2000-11-08 Thread Chris Withers
Dieter Maurer wrote: Then Chris Withers wrote: use dtml-with imagesdtml-var image.gif/dtml-with I did not believe him and tried it out... ... it works in Zope 2.2.2. ...worked for me all the way back to 2.1.4 ;-) Anyway, if you're _really_ lazy, write an external method something

RE: [Zope] images in directories

2000-11-07 Thread Pete Prodoehl
the following: dtml-var "images.getitem('image.gif',1)" but that didn't work for some reason, and still seems a little complex for just inserting an image. Pete -- Subject: Re: [Zope] images in directories hi, Sure they are. If you ftp a jpg to the server i

RE: [Zope] images in directories

2000-11-07 Thread Dieter Maurer
Pete Prodoehl writes: I was sort of hoping it would be easier. It would be ideal to have this: dtml-with imagesdtml-var image.gif/dtml-with boiled down to one simple tag that works when I store images in a subfolder *and* use file extensions. But from what I've read so far,

Re: [Zope] images in directories

2000-11-06 Thread Chris Withers
Pete Prodoehl wrote: Is it possible to have an image named "image.gif" or "image.jpg" ? (Are file extensions allowed? If so, how are those objects addresses?) dtml-with IMAGES dtml-var image.gif /dtml-with or dtml-var "IMAGES.getitem('image.gif',1)" cheers, Chris Pete

Re: [Zope] images in directories

2000-11-06 Thread Jason C. Leach
hi, Sure they are. If you ftp a jpg to the server it comes up with an id of bla.jpg, you can then refrence it in html just like you would on an Apache server or whaterver img src="../../bla.jpg" j. .. . Jason C. Leach ... University College of the Cariboo. .. On Mon,

RE: [Zope] images in directories

2000-11-05 Thread Dieter Maurer
Pete Prodoehl writes: Is it possible to have an image named "image.gif" or "image.jpg" ? (Are file extensions allowed? If so, how are those objects addresses?) It is. And it is quite common. There is a minor problem, if you like to put images in an "image" folder. But this is not related to

[Zope] images in directories

2000-11-02 Thread CURTIS David
Hi, I check the archives but could not find an answer. How do you display images that are burried in directories? For example, dtml-var image1 works with the image1 at same level but dtml-var /IMAGES/image1 does not. nor does dtml-var IMAGES/image1 Any help would be apprechiated. Thanks in

Re: [Zope] images in directories

2000-11-02 Thread Daniel Rusch
When you create your image object set the path correctly then your dtml-var image1 should work :) Dan CURTIS David wrote: Hi, I check the archives but could not find an answer. How do you display images that are burried in directories? For example, dtml-var image1 works with the image1

Re: [Zope] images in directories

2000-11-02 Thread Aaron Payne
David, dtml-var "IMAGES.image1" Where image1 is in the folder IMAGES. -Aaron At 07:42 AM 11/2/00 -0800, CURTIS David wrote: Hi, I check the archives but could not find an answer. How do you display images that are burried in directories? For example, dtml-var image1 works with the image1

Re: [Zope] images in directories

2000-11-02 Thread Laurent Tranchant
CURTIS David a écrit : Hi, I check the archives but could not find an answer. How do you display images that are burried in directories? For example, dtml-var image1 works with the image1 at same level but dtml-var /IMAGES/image1 does not. nor does dtml-var IMAGES/image1 Any help

RE: [Zope] images in directories

2000-11-02 Thread Farrell, Troy
no money? -Original Message- From: CURTIS David [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 02, 2000 9:42 AM To: [EMAIL PROTECTED] Subject: [Zope] images in directories Sensitivity: Personal Hi, I check the archives but could not find an answer. How do you display images

Re: [Zope] images in directories

2000-11-02 Thread Petr van Blokland
"Farrell, Troy" wrote: dtml-with IMAGES dtml-var image1 /dtml-with This also works: dtml-var "IMAGES.image1" Petr van Blokland [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No

RE: [Zope] images in directories

2000-11-02 Thread Pete Prodoehl
Is it possible to have an image named "image.gif" or "image.jpg" ? (Are file extensions allowed? If so, how are those objects addresses?) Pete -- "Farrell, Troy" wrote: dtml-with IMAGES dtml-var image1 /dtml-with This also works: dtml-var "IMAGES.image1"

Re: [Zope] images in directories

2000-11-02 Thread Jason C. Leach
hi This is a bit of code I was working on, it may not be what you are after but: dtml-in expr="PARENTS[0].objectValues('Image')" lidtml-var title_or_idbr/li img src="dtml-var id"brbrbr /dtml-in It scans through a Folder and displays all the images it finds. If that's not what