[Zope] Re: Photo Product fix/question/suggestion
Andrew Lahser
andrew@apl-software.com
Tue, 11 Jan 2000 00:12:22 -0500
> Perhaps this will be a little more clear. Here is the relevant hierarchy:
>
> ==Classes in my product section==
>
> TrumpFolderClass
> --- TrumpClass
> ------- index_html **
> ------- [property sheet]
> ----------- name
> ----------- image
> ----------- description
>
>
> ==Objects on my site==
>
> Trumps (my TrumpFolderClass instance)
> --- trump1_info (TrumpClass instance, image="trump1.jpg")
> --- trump1.jpg (Photo instance)
> --- trump2_info (TrumpClass instance, image="trump2.jpg")
> --- trump2.jpg (Photo instance)
>
>
> ** index_html is where I'm writing this code to render the Photo. That
way,
> viewing trump1_info or trump2_info loads the proper image.
Sure. I think I get your problem now. Try this.
<dtml-with "_.getitem(image, 0)">
<dtml-var "tag(REQUEST, pdcookie='1', alt='your alt text')">
</dtml-with>
Drew