RE: Download pub type tute
"Michael Cortez" <[email protected]> Mon, 4 Aug 2003 08:31:50 -0700
| Newsgroups | gmane.comp.cms.xaraya.documentation |
|---|---|
| Message-ID | <002a01c35a9d$8643c720$0601a8c0@paxtera> |
>> I never did find out how Download pub type is >> *supposed* to be setup. If anyone reads the tute, and has a >> better way of using dynamic data/uploads - let me know and >> I'll update the tute during my edit of it. >> Alternatively, you could choose not to use the DD File Upload field at all, and you should be able to just use the Body File Upload Field -- this would make it so that you don't have to do any template hacking. You note in your tutorial: "In our case, we want the file uploaded and saved to disk, ready for downloading, not displayed so we use the Uploads module and hooks." Yes this was the original intent of that field. However, if you have the uploads module hooked to articles, and if the code base hasn't changed, then the articles module detects the uploads module is hooked to it, and it allows the upload of files using that field without using the DD Upload Property type. This is actually the mechanism that automatically places in the body text field the code #ulid:1# --- the DD Upload property type does not place that code into any of the other fields, and instead makes it available as a variable to the display templates ($upload in your case, based on the label you provide that field in the DD property config for the publication type} So since your using the Body field, and the Body File field, and you've hooked uploads to the articles module, you should not need the DD Upload property at all, and you can simply remove that part of your tutorial and the rest should work fine. If not, I can drop into IRC and help out. -- Mike C.