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!

Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to