[Zope] Aligning Images With Text

2000-07-12 Thread Terry Babbey
Here is my code: dtml-if "_[ProgCode + 'PIC']" dtml-var "_[ProgCode + 'PIC']" /dtml-if What I would like to do is align the picture to the right of my web page. If I was programming html I would do it like this: img src=T043PIC align=right Any help? Terry --

Re: [Zope] Aligning Images With Text

2000-07-12 Thread Gregory Haley
Terry Babbey wrote: Here is my code: dtml-if "_[ProgCode + 'PIC']" dtml-var "_[ProgCode + 'PIC']" /dtml-if You might create a dtml variable with a dtml call, e.g., dtml-call "REQUEST.set('image1', _[ProgCode + 'PIC']" Then use your image html tag as img src="dtml-var

Re: [Zope] Aligning Images With Text

2000-07-12 Thread Terry Babbey
I get an error message when I try your code. Expression (Python) Syntax error: unexpected EOF while parsing , for tag dtml-call "REQUEST.set('image1', _[ProgCode + 'PIC']", on line 32 of display_html Gregory Haley wrote: Terry Babbey wrote: Here is my code: dtml-if "_[ProgCode +

Re: [Zope] Aligning Images With Text

2000-07-12 Thread R. David Murray
On Wed, 12 Jul 2000, Terry Babbey wrote: Here is my code: dtml-if "_[ProgCode + 'PIC']" dtml-var "_[ProgCode + 'PIC']" /dtml-if What I would like to do is align the picture to the right of my web page. If I was programming html I would do it like this: img src=T043PIC align=right

Re: [Zope] Aligning Images With Text

2000-07-12 Thread Terry Babbey
This worked. Now if only I could get my dtml-if statement working. Thanks, Terry "R. David Murray" wrote: On Wed, 12 Jul 2000, Terry Babbey wrote: Here is my code: dtml-if "_[ProgCode + 'PIC']" dtml-var "_[ProgCode + 'PIC']" /dtml-if What I would like to do is align the picture to

Re: [Zope] Aligning Images With Text

2000-07-12 Thread Peter Be
and see if you can add ALIGN. Good luck. Please keep us posted if any success. :) - Original Message - From: Terry Babbey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 12, 2000 8:24 PM Subject: [Zope] Aligning Images With Text Here is my code: dtml-if "_[ProgCode +

Re: [Zope] Aligning Images With Text

2000-07-12 Thread Loren Stafford
quot;Terry Babbey" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: July 12, 2000 12:24 PM Subject: [Zope] Aligning Images With Text Here is my code: dtml-if "_[ProgCode + 'PIC']" dtml-var "_[ProgCode + 'PIC']" /dtml-if What I would like to do is align the picture to the

Re: [Zope] Aligning Images With Text

2000-07-12 Thread R. David Murray
On Wed, 12 Jul 2000, Terry Babbey wrote: Now if only I could get my dtml-if statement working. dtml-if "_[ProgCode + 'PIC']" I believe this should work (mostly tested): dtml-if "_.has_key(ProgCode + 'PIC')" Note that this will be true if the id exists anywhere in the acquisition path.

Re: [Zope] Aligning Images With Text

2000-07-12 Thread R. David Murray
On Wed, 12 Jul 2000, Peter Be wrote: If you use .tag you can only control ALT, HEIGHT, WIDTH and BORDER Look for these things in the Image module and see if you can add ALIGN. As far as I can see from the source, tag should handle arbitrary arguments. The comments certainly say that it does.

Re: [Zope] Aligning Images With Text

2000-07-12 Thread Terry Babbey
Thanks again. Works! "R. David Murray" wrote: On Wed, 12 Jul 2000, Terry Babbey wrote: Now if only I could get my dtml-if statement working. dtml-if "_[ProgCode + 'PIC']" I believe this should work (mostly tested): dtml-if "_.has_key(ProgCode + 'PIC')" Note that this will be true