[Zope] Re: Document Title

ethan mindlace fremen mindlace@digicool.com
Wed, 12 Jul 2000 20:00:06 -0400


Terry Babbey wrote:
> 
> Here is my next problem ... I have a variable called ProgCode. That is where I
> store the College Program I want to look up information on (eg. T043). Now all
> the dtml documents associated with program T043 have T043 as the base of their
> name and then the names have extra characters (eg. T043PIC is the picture
> associated with the T043 program). So what I want to do is append the letters
> PIC to the variable ProgCode and then test to see if the file exists.
> Here is one thought I have had so far but it does not work.

Assuming that the picture is an image:
you have to put it in a dtml-var:

> <dtml-if "_.getitem(ProgCode+'PIC')">
  <dtml-var "_.getitem(ProgCode+'PIC').tag(ALIGN='RIGHT')">
> </dtml-if>

-- 
ethan mindlace fremen
Zopatista Community Liason
Abnegate I!