Last active
August 29, 2015 14:04
-
-
Save mmccall10/860f8687a863735bd164 to your computer and use it in GitHub Desktop.
Get the block tool folder url
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
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'; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment