Sisimizi's Download Folder - Open In New Window

Permalink
I would like to be able to click the file and have it open in a new window (still in the browser). I am using Sisimizi's download folder to list PDF meeting minutes. I appreciate anyone who could send me in the correct direction.

 
sascha replied on at Permalink Reply 2 Attachments
sascha
Simply open the file view.php with an editor and add parameter target=_blank for the links (that's the lines with <a href=...)

Or use one of the attached view.php files and simply replace the original one. I've included files for the 1.0 version and 2.0 beta (available on the marketplace forums as attachment in this post:http://www.concrete5.org/marketplace/addons/download_folder/support... )

I will add this function as an option on the next version ;)
wheatfieldtwp replied on at Permalink Reply
Thank You very much Sascha! I could have spent a long time trying to figure out what file and where to add the HTML code. Four line edits and it is working great.
ughly replied on at Permalink Reply
I am trying out this block.
I uploaded some files.
I see the files.
When I click on a file I get:

Page Not Found

No page could be found at this address.

Any suggestions?
Mnkras replied on at Permalink Reply
Mnkras
im guessing you did not add the files
ughly replied on at Permalink Reply
This is my 1st attempt at a golf website.

http://www.ughly.com/dto/

Click on the Download tab and pick a file.
wheatfieldtwp replied on at Permalink Reply
Try adding the mod_rewrite code to the .htaccess file in the main directory. If you don't have one just use notepad to create a text file with the following code then save it as .htaccess without the .txt extension and don't forget the period before the h.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
sascha replied on at Permalink Reply
sascha
Hi ughly,
you do not need to use modrewrite for that, you can change that from block configuration page using the "Substitute URL" field.

But I guess the problem is something different. Where did you upload the files for your downloads (to which folder) ?

Your files link tohttp://www.ughly.com/dto/index.php/downloads/downloads/Golf_Truisms... - you probably did create a folder "downloads" within your c5 installation folder for that. In this case your website "downloads" cannot have the same page name. Try changing the name for download folder then. Don't forget to change it on the block configuration, too. ;)

If that's not the problem please let me know where exactly you placed the download folder (you can do that by private message if you prefer to keep it non public).