How to get tools folder for a block
Permalink 3 users found helpfulHow do I obtain the location or URL of the tools folder for a block?
Is this documented?
Jake

is it bad practise to create tool directory in block's template folder?
http://www.concrete5.org/developers/bugs/5-5-2/blockviewtemplateget...
You want to use the urls helper.
For a file that's in your site's top-level tools directory, do this:
echo Loader::helper('concrete/urls')->getToolsURL('name_of_tools_file_without_php_at_the_end');
For a file in a package's tools directory, do this:
echo Loader::helper('concrete/urls')->getToolsURL('name_of_tools_file_without_php_at_the_end', 'your_package_handle');
For a block's tools file, I think you do this:
Loader::model('block_types'); $bt = BlockType::getByHandle('your_block_handle'); $tools_dir = Loader::helper('concrete/urls')->getBlockTypeToolsURL($bt); echo $tools_dir . '/name_of_tools_file_without_php_at_the_end';
...or use 12345j's solution because it's way simpler :)