Page 1 of 1
uploaded files...
Posted: Tue May 01, 2007 8:31 pm
by lie2815
i uploaded files with the file manager. and i have two questions...
1. when i insert a link to the file, the path becomes /cms/uploads///downloads/. Why does it do that?
2. How can I insert download links (especially pdf files)?
Fast help would be GREATLY appreciated. Thanks.
Re: uploaded files...
Posted: Tue May 01, 2007 8:54 pm
by Dee
lie2815 wrote:
1. when i insert a link to the file, the path becomes /cms/uploads///downloads/. Why does it do that?
No idea. Check your config.php to make sure none of the $config['*_url'] values has a slash at the end.
lie2815 wrote:
2. How can I insert download links (especially pdf files)?
Check out the
Uploads module.
Regards,
D
Re: uploaded files...
Posted: Tue May 01, 2007 9:57 pm
by lie2815
Thanks. The module is good. With its help I inserted a link, but now I don't want the file name to appear there, but something else (like the text between and ). I use the "link" mode. How can I do that. Could I just put the module tag in a normal link as target?
Re: uploaded files...
Posted: Tue May 01, 2007 10:05 pm
by calguy1000
The uploads module is all template controlled. To see what variables are available you can add (temporarily) {get_template_vars} into the template to see what's available.
If you're dealing with an object, or an array, you can use {$object|print_r} to see what's available.
It seems to me (in the uploads module) there's an $entry->url or something like that that you can use to build your own link
Re: uploaded files...
Posted: Tue May 01, 2007 11:40 pm
by lie2815
Uhmmm... I uploaded pdf files and now there is the following error when I download them and try to open them:
...could not open because it is either not a supported file type or because the file has been damaged...
Now what?