[Zope] JPicture Examples?
Jens Vagelpohl
jens@zope.com
Tue, 30 Oct 2001 17:44:45 -0500
aaron,
you're calling objectValues with the wrong argument and possibly on the
wrong object. objectValues takes a meta_type (or list of meta types) as
its argument.
if what you're trying to do is to display a single JPicture thumbnail then
try the following: (provided the ID is "testPic")
<img src="<dtml-var expr="testPic.absolute_url()">/viewThumb">
jens
On Tuesday, October 30, 2001, at 05:36 , abg@comco-inc.com wrote:
> Hi Jens,
>
> -- Jens Wrote --
>> here's one:
>>
>> <dtml-in "objectValues('JPicture')">
>> <img src="&dtml-absolute_url;/viewThumb">
>> </dtml-in>
>>
>> jens
>
> That's exactly what I've tried. Here's my code:
>
> <html>
> <body>
> <dtml-in "objectValues('testPic')">
> <img src="&dtml-absolute_url;/viewThumb">
> </dtml-in>
> </body>
> </html>
>
> Here's the output:
>
> <html>
> <body>
>
>
> </body>
> </html>
>
> Here's my Zope info:
>
> Zope Version (Zope 2.4.0 (binary release, python 2.1, win32-x86), python
> 2.1.0, win32)
> Python Version 2.1 (#15, Apr 16 2001, 18:25:49) [MSC 32 bit (Intel)]
> System Platform win32
>
> Thanks,
>
> Aaron
>
> _______________________________________________
> 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 )