[eluser]Shiju S S[/eluser]
1. Install Module Download Module
2. Click Download Module and add files to be downloaded. The permission as All will not work, we have to teak the module code, which is given later.
3. Go to Content - Publish / Edit and select your channel.
4. Another Tab Downloads will be added to your entry now. Select the file to be downloaded.
5. Create template:
Code:
{exp:channel:entries channel="products" orderby="title" sort="asc"}
<h2 class="underline">{title} - {entry_id}</h2>
{exp:download:entries entry_id="{entry_id}"}
<a href="{file_download}">{file_title}</a>
{/exp:download:entries}
{/exp:channel:entries}
6. You will be able to see the links in the front at this stage. But clicking on the link will not initiate downloads. a little tweak here.
7. Go to system/expressionengine/thirdparty/downloads folder and open the file mod.download.php
8. Go to Line number 163, either comment it or use appropriate logig:
Code:
/*if ( ! in_array('all', $allowed) && ! in_array($group_id, $allowed))
{
return $this->EE->output->show_user_error('general', $this->EE->lang->line('no_permission'));
}*/