uploaded files...

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
lie2815
Forum Members
Forum Members
Posts: 34
Joined: Thu Mar 15, 2007 10:25 pm

uploaded files...

Post 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.
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: uploaded files...

Post 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
lie2815
Forum Members
Forum Members
Posts: 34
Joined: Thu Mar 15, 2007 10:25 pm

Re: uploaded files...

Post 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?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: uploaded files...

Post 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
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.
lie2815
Forum Members
Forum Members
Posts: 34
Joined: Thu Mar 15, 2007 10:25 pm

Re: uploaded files...

Post 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?
Post Reply

Return to “CMSMS Core”