Direct link (with extensions) when you choose file from FileManager to content block

Permalink
If it's important for you to have absolute path to files (with extensions), when you adding files as a link from File Manager (Choose option) to content block, you have to modify this file:

concrete/blocks/content/editor_init.php

and replace strings: "filePath" to "filePathDirect"

Of course the best way is to copy "content" folder to "blocks" in concrete's root and edit from there.

For my it was necessary to run bumpbox from content block type, because this script needs to recognize file extension.



--
best regards
peter

 
Mnkras replied on at Permalink Reply
Mnkras
i believe it takes from the Base_url in the site.php,

if you stick this in the site.php

<?php define('REDIRECT_TO_BASE_URL', false); ?>


it disables that, so its like using realative paths