Re: upload module for gallery album

[email protected] (mikespub) Mon, 04 Aug 2003 18:03:22 GMT
Newsgroups gmane.comp.cms.xaraya.knowledge-base
Organization not much
Message-ID <[email protected]>
In article <bgbdug$gm9$1-111RdWWlOxkOkXtL6OYfHgC/[email protected]>, [email protected] (carlo) wrote:
>I want to use the upload module for the gallery pub-type.
>But I want to have the #$bodyfile# content (that is the location of the
>image uploaded) in the user-summary template too.
>Since I don't find how to do it, I create a new DD field named photo with
>"upload" in the property. This work since I can view my #$photo# variable
>in the user-summary and in the user-display tmplate. But If I uncheck the
>bodyfile field or if I change the property of that field (from upload to
>something else) the content of my #$photo# variable is empty.
>I don't need anymore that field (the DD field has replaced it).
>
>
>What I'm missing? How can it be done in a smarter way?

Well, if you don't intend to use thumbnails anyway, you can simply fill
in the "summary" field with the same value (= uploaded image) as the
"body" field.

[or adapt the original user-summary-pictures.xd to use #$body# instead
of #$summary#, which is what I use at http://mikespub.net/xaraya/pictures/]

Either way, you don't need to use a DD field for this...

Mike.