Posted By

dosde on 03/05/13


Tagged

block concrete5


Versions (?)

Get the block path


 / Published in: PHP
 

Returns the path of the block. In this snippet, it is used within a block (to add images or certain other files)

  1. $btID = $b->getBlockTypeID();
  2. $bt = BlockType::getByID($btID); //getByHandle($btHandle);
  3.  
  4. $uh = Loader::helper('concrete/urls');
  5. $uh->getBlockTypeAssetsURL($bt);

Report this snippet  

You need to login to post a comment.