Articles Résolution de problèmes A TRADUIRE

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}

User Handbook/Admin Panel/News/Troubleshooting/fr

From CMSMS

A2 Hosting