This page in: English - Deutsch - Español - Français - Italiano - Lietuvių - Nederlands - Norsk - Polski - Русский - Svenska - Tiếng Việt - عربي - 日本語 简体中文
Trouble Shooting
You receive this message when trying to upload a file to the news module; "Cannot upload this type of file"
- Go to the news module settings and choose the "Options" tab on the right. Check that the file type you are trying to upload is in the list of "Allow only files with these extensions to be uploaded:". This list should be a comma separated list of file extensions. By default News is only set to allow image uploads. You will need to edit the news summary and detail templates to show links to files instead of displaying images.
- Look for this section in the summary and detail templates:
{if $field->type == 'file'} <img src="{$entry->file_location}/{$field->value}"/> {else} {$field->name}: {eval var=$field->value} {/if} And change it to something like this: {if $field->type == 'file'} Follow the link for the attachment: <a href="{$entry->file_location}/{$field->value}">{$field->name}</a> {/if}