[ZPT] FW: [Zope] zope page templates and image tags. tal:attributes:

Trevor Toenjes zope@toenjes.com
Wed, 1 May 2002 13:53:43 -0400


> How about:
>
> <img tal:replace="python:here.images.image.tag(border=1)" />

What does that look like if you usethe standard extension.  like image.gif
or image.jpg?


> Insert whatever attributes of the image you want to set as
> arguments to the
> tag method.
>
> hth,
>
> Casey
>
> On Wednesday 01 May 2002 01:23 pm, Trevor Toenjes allegedly wrote:
> > Russell,
> > I have forwarded your email to the ZPT list where you are more
> likely to get
> > ZPT help.
> > -Trevor
> >
> >
> > -----Original Message-----
> > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
> > Russell Uman
> > Sent: Wednesday, May 01, 2002 1:15 PM
> > To: zope@zope.org
> > Subject: [Zope] zope page templates and image tags. tal:attributes:
> >
> >
> >
> > hi.
> >
> > i'm trying to call an image and set the attributes of the image tag
> > dynamically.
> >
> > <span tal:replace="structure container/images/image.gif"
> > tal:attributes="border string:1"></span><br>
> > <img tal:replace="structure container/images/image.gif"
> > tal:attributes="border string:1"><br>
> >
> > in each case i get an error:
> >
> > Error Type: AttributeError
> > Error Value: Context instance has no attribute 'getCompilerError'
> >
> > so instead i am building my images like this:
> >
> > <img src=nothing.gif tal:attributes="src string:images/image.gif; border
> > string:1">
> >
> > this seems kind of painful to me. can someone explain the error i am
> > receiving and give me a clue about how to do this the right way
> > in zope? should i give up on page templates and use dtml
> instead? pointers
> > to useful documentation would be greatly appreciated.
> > i've read the zope book up and down but clearly i need more
> fine manuals to
> > read...
> >
> > thanks!
> >
> >
> >
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> >
> >
> >
> > _______________________________________________
> > ZPT mailing list
> > ZPT@zope.org
> > http://lists.zope.org/mailman/listinfo/zpt
> >
>
>
>
> _______________________________________________
> ZPT mailing list
> ZPT@zope.org
> http://lists.zope.org/mailman/listinfo/zpt