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.
uploaded files...
Re: uploaded files...
No idea. Check your config.php to make sure none of the $config['*_url'] values has a slash at the end.lie2815 wrote: 1. when i insert a link to the file, the path becomes /cms/uploads///downloads/. Why does it do that?
Check out the Uploads module.lie2815 wrote: 2. How can I insert download links (especially pdf files)?
Regards,
D
Re: uploaded files...
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?
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: uploaded files...
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
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
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: uploaded files...
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?
...could not open because it is either not a supported file type or because the file has been damaged...
Now what?

