Re: Download pub type tute

"jojodee" <jojodee-8nna1qhvBBM9QQeoy3GH/[email protected]> Tue, 5 Aug 2003 21:45:39 +0930
Newsgroups gmane.comp.cms.xaraya.documentation
Organization Xaraya News Server
Message-ID <[email protected]>
"Michael Cortez" <[email protected]> wrote in message
news:mailman.244.1060018555.8743.xaraya_docs-n5IRV0TL0hwRxVAL8JNkP+OyGI2DFzLe@public.gmane.org
> Thanks Mike for such a comprehensive reply.
>

> >1. If I just had the uploads hooked to articles - i get the
> >the binary displayed instead of uploaded. So I gave that up -
>> even tho it *was* working for me that way.

>Hmmm, I've seen this too -- usually it's because the uploads isn't hooked
to
articles.

Mike, found the problem - it was the hooks. But, I did have hooks activated
for uploads and the download pub type. This is why I had it working, just
with uploads hooked to articles and custom template as it was supposed to
be - and then it stopped when I upgraded my site to .906 from .904. At some
time prior to upgrade I'd removed the upload hook for all articles and just
activated for downloads. Was working at the time.

You have to have the upload hook activated for ALL article types otherwise
the hook does not seem to work.

So, i've put back my original download tutorial using this simple method -
with the proviso that the upload hook is activated for all article types.:)

> >2. Tried with just DD - changed the templates - worked
> >beautifully. Then went to check my downloads page one day and
> >realized it was showing the #ulid:x# not the download.

>Ya, if you just do DD, the #ulid:x# tag won't work.  You have to use the DD
>field variable, like $upload

Had this working too, but, for the same reason as above this stopped working
as well. The only way was to force it by having the DD and upload file field
(which forced that ::enctype-"multipart/form-data"::)- and upload hook
(which really wasn't working).
So, the second tutorial on DD and downloads is also correct - I'll put that
one up too - as an example of using DD with pub types :)

Tx for your help.